From fa4fc7c697ca6dc5b53aa75022753406cb485c11 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 16 Dec 2024 13:49:38 +0100 Subject: [PATCH] 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. --- gettext-tools/examples/hello-c-gnome3/hello.c | 9 --------- 1 file changed, 9 deletions(-) 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), -- 2.47.3