[balsa/gtk4: 251/286] Replace gtk_dialog_run()
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk4: 251/286] Replace gtk_dialog_run()
- Date: Thu, 24 Dec 2020 17:07:35 +0000 (UTC)
commit b6edf54693df0c2ba10d416b17f96f3215b74e72
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]