From: Bruno Haible Date: Mon, 16 Dec 2024 12:49:38 +0000 (+0100) Subject: hello-c-gnome3: Exit when the window's close button is clicked. X-Git-Tag: v0.24~99 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=57472e6fd69f7c14ad0101d0627a5a075fcf1b0b;p=thirdparty%2Fgettext.git hello-c-gnome3: Exit when the window's close button is clicked. * 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. --- diff --git a/gettext-tools/examples/hello-c-gnome3/hello.c b/gettext-tools/examples/hello-c-gnome3/hello.c index 569808e83..2683012bf 100644 --- a/gettext-tools/examples/hello-c-gnome3/hello.c +++ b/gettext-tools/examples/hello-c-gnome3/hello.c @@ -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),