[balsa/gtk4: 253/289] Replace gtk_dialog_run()




commit a3ec6c456a9b67008667a61d80a2fc507fed854f
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Thu Nov 12 13:34:08 2020 -0500

    Replace gtk_dialog_run()
    
    modified:   src/ab-main.c

 src/ab-main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/ab-main.c b/src/ab-main.c
index 0f93f52a0..a97c6ca0a 100644
--- a/src/ab-main.c
+++ b/src/ab-main.c
@@ -1035,8 +1035,8 @@ ab_warning(const char *fmt, ...)
                                GTK_DIALOG_DESTROY_WITH_PARENT,
                                GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,
                                "%s", msg);
-    gtk_dialog_run(GTK_DIALOG(d));
-    gtk_widget_destroy(d);
+    g_signal_connect(d, "response", G_CALLBACK(gtk_window_destroy), NULL);
+    gtk_widget_show(d);
 }
 
 static void


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