[gtk+/wip/tingping/remove-dialog-run: 5/6] gtkrecentchooserdefault: Remove gtk_dialog_run() usage
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/tingping/remove-dialog-run: 5/6] gtkrecentchooserdefault: Remove gtk_dialog_run() usage
- Date: Fri, 2 Jun 2017 23:10:59 +0000 (UTC)
commit dea8012e213f9b465df3e4267fd481f74ca09874
Author: Patrick Griffis <tingping tingping se>
Date: Fri Jun 2 15:39:33 2017 -0400
gtkrecentchooserdefault: Remove gtk_dialog_run() usage
gtk/gtkrecentchooserdefault.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkrecentchooserdefault.c b/gtk/gtkrecentchooserdefault.c
index 6d85951..e9ed059 100644
--- a/gtk/gtkrecentchooserdefault.c
+++ b/gtk/gtkrecentchooserdefault.c
@@ -596,8 +596,8 @@ error_message_with_parent (GtkWindow *parent,
gtk_window_group_add_window (gtk_window_get_group (parent),
GTK_WINDOW (dialog));
- gtk_dialog_run (GTK_DIALOG (dialog));
- gtk_widget_destroy (dialog);
+ g_signal_connect (dialog, "response", G_CALLBACK(gtk_widget_destroy), NULL);
+ gtk_widget_show (dialog);
}
/* Returns a toplevel GtkWindow, or NULL if none */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]