[balsa/wip/gtk4: 12/351] Fix quitting



commit 94505dd57893199eed47c4308d3a6c531bf98da2
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Wed Oct 4 21:20:18 2017 -0400

    Fix quitting

 src/main-window.c |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/src/main-window.c b/src/main-window.c
index bb878c3..938bf3b 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -1003,8 +1003,7 @@ quit_activated(GSimpleAction * action,
                GVariant      * parameter,
                gpointer        user_data)
 {
-    GtkWindow *window = GTK_WINDOW(user_data);
-    GdkEvent *event;
+    GtkWidget *window = user_data;
 
     libbalsa_information_parented(window,
                                   LIBBALSA_INFORMATION_MESSAGE,
@@ -1013,11 +1012,7 @@ quit_activated(GSimpleAction * action,
     while(gtk_events_pending())
         gtk_main_iteration_do(FALSE);
 
-    event = gtk_get_current_event();
-    g_signal_emit_by_name(window, "delete-event", event);
-    if (event != NULL) {
-        gdk_event_free(event);
-    }
+    gtk_widget_destroy(window);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]