[gtk+] inspector: Repeat the keybinding warning



commit 2df80d7a4d1776f98a826b90bd3969b868d54244
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu May 22 18:32:37 2014 -0400

    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 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 537cdf1..7dd0498 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);
         }
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]