[gnome-control-center] region: Remove one use of gtk_dialog_run()



commit 0dd5a8ac18697bc854c875062f5998a55bfc6234
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Jan 24 12:23:34 2011 +0000

    region: Remove one use of gtk_dialog_run()
    
    And make sure that the dialogue is destroyed when clicking its
    close titlebar button.

 panels/region/gnome-region-panel-xkbot.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/panels/region/gnome-region-panel-xkbot.c b/panels/region/gnome-region-panel-xkbot.c
index f43be42..a7026e4 100644
--- a/panels/region/gnome-region-panel-xkbot.c
+++ b/panels/region/gnome-region-panel-xkbot.c
@@ -421,7 +421,8 @@ chooser_response_cb (GtkDialog * dialog, gint response, gpointer data)
 		/* capplet_help (GTK_WINDOW (dialog),
 		   "prefs-keyboard-layoutoptions"); */
 		break;
-	case GTK_RESPONSE_CLOSE:{
+	case GTK_RESPONSE_DELETE_EVENT:
+	case GTK_RESPONSE_CLOSE: {
 			/* just cleanup */
 			GSList *expanders_list =
 			    g_object_get_data (G_OBJECT (dialog),
@@ -455,8 +456,7 @@ xkb_options_popup_dialog (GtkBuilder * dialog)
 
 	g_signal_connect (chooser, "response",
 			  G_CALLBACK (chooser_response_cb), dialog);
-
-	gtk_dialog_run (GTK_DIALOG (chooser));
+	gtk_widget_show (chooser);
 }
 
 /* Update selected option counters for a group-bound expander */



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