]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
hello-c-gnome3: Exit when the window's close button is clicked.
authorBruno Haible <bruno@clisp.org>
Mon, 16 Dec 2024 12:49:38 +0000 (13:49 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 31 Dec 2024 10:09:24 +0000 (11:09 +0100)
* gettext-tools/examples/hello-c-gnome3/hello.c
(hello_application_window_dispose): Remove function.
(hello_application_window_class_init): Don't overwrite the 'dispose' field.

gettext-tools/examples/hello-c-gnome3/hello.c

index 569808e83350453abf62588b851ec218f2d2dc68..2683012bf3a4352917c3404b824df6cb74646c0b 100644 (file)
@@ -93,20 +93,11 @@ hello_application_window_init (HelloApplicationWindow *window)
   update_content (window);
 }
 
-static void
-hello_application_window_dispose (GObject *object)
-{
-  HelloApplicationWindow *window = HELLO_APPLICATION_WINDOW (object);
-  g_clear_object (&window->settings);
-}
-
 static void
 hello_application_window_class_init (HelloApplicationWindowClass *klass)
 {
   GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
 
-  gobject_class->dispose = hello_application_window_dispose;
-
   gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass),
                                                UI_PATH);
   gtk_widget_class_bind_template_child (GTK_WIDGET_CLASS (klass),