[balsa/gtk4: 259/311] Replace gtk_dialog_run()
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk4: 259/311] Replace gtk_dialog_run()
- Date: Fri, 17 Dec 2021 19:54:27 +0000 (UTC)
commit c3a93fc259f380f9f2f874a1ffb4f00bb917802c
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]