From 2df80d7a4d1776f98a826b90bd3969b868d54244 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 22 May 2014 18:32:37 -0400 Subject: inspector: Repeat the keybinding warning Show the confirmation dialog every time the keybinding is used, until the user clicks OK. --- gtk/gtkwindow.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 537cdf1fe6..7dd0498911 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -12260,7 +12260,10 @@ warn_response (GtkDialog *dialog, { gtk_widget_destroy (GTK_WIDGET (dialog)); if (response == GTK_RESPONSE_NO) - gtk_widget_hide (inspector_window); + { + gtk_widget_destroy (inspector_window); + inspector_window = NULL; + } } static gboolean @@ -12296,8 +12299,7 @@ gtk_window_set_debugging (gboolean enable, "application to break or crash.")); gtk_dialog_add_button (GTK_DIALOG (dialog), _("_Cancel"), GTK_RESPONSE_NO); gtk_dialog_add_button (GTK_DIALOG (dialog), _("_OK"), GTK_RESPONSE_YES); - g_signal_connect (dialog, "response", - G_CALLBACK (warn_response), inspector_window); + g_signal_connect (dialog, "response", G_CALLBACK (warn_response), NULL); } } -- cgit v1.2.1