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



commit c3a023f684c0bffba73a8d0cefedc3a580595184
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Wed Oct 4 21:22:26 2017 -0400

    Fix quitting

 src/main-window.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/main-window.c b/src/main-window.c
index 938bf3b..e42a239 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -1003,7 +1003,7 @@ quit_activated(GSimpleAction * action,
                GVariant      * parameter,
                gpointer        user_data)
 {
-    GtkWidget *window = user_data;
+    GtkWindow *window = user_data;
 
     libbalsa_information_parented(window,
                                   LIBBALSA_INFORMATION_MESSAGE,
@@ -1012,7 +1012,7 @@ quit_activated(GSimpleAction * action,
     while(gtk_events_pending())
         gtk_main_iteration_do(FALSE);
 
-    gtk_widget_destroy(window);
+    gtk_widget_destroy((GtkWidget *) window);
 }
 
 static void


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