summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-05-22 18:32:37 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-05-22 18:37:43 -0400
commit2df80d7a4d1776f98a826b90bd3969b868d54244 (patch)
treefc374e769e8237e89d4ef00b024b80c36416f5b2
parent372e551a6604b46e3da87731ae8bda1f44331848 (diff)
downloadgtk+-2df80d7a4d1776f98a826b90bd3969b868d54244.tar.gz
inspector: Repeat the keybinding warning
Show the confirmation dialog every time the keybinding is used, until the user clicks OK.
-rw-r--r--gtk/gtkwindow.c8
1 files 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);
}
}