Commit 0dd5a8ac authored by Bastien Nocera's avatar Bastien Nocera
Browse files

region: Remove one use of gtk_dialog_run()

And make sure that the dialogue is destroyed when clicking its
close titlebar button.
parent 2a8870b7
......@@ -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 */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment