[balsa/gtk4: 248/276] Replace gtk_dialog_run()
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk4: 248/276] Replace gtk_dialog_run()
- Date: Sat, 12 Dec 2020 16:03:35 +0000 (UTC)
commit e114998a7c9d84cfed19a25e9277683610c583e3
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]