[gnome-control-center] Fix the modality of the Preview dialog



commit b5e63ec96b2a50bb53e4749f8348d41419a4bbbe
Author: Sergey V. Udaltsov <svu gnome org>
Date:   Wed Feb 9 09:29:57 2011 +0000

    Fix the modality of the Preview dialog
    
    set_modal should be used instead of set_transient_for
    Also, a bit of memory tidy up

 panels/region/gnome-region-panel-xkbltadd.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/panels/region/gnome-region-panel-xkbltadd.c b/panels/region/gnome-region-panel-xkbltadd.c
index 26889cc..f40554b 100644
--- a/panels/region/gnome-region-panel-xkbltadd.c
+++ b/panels/region/gnome-region-panel-xkbltadd.c
@@ -101,12 +101,19 @@ xkb_layout_chooser_response (GtkDialog * dialog,
 					    (GTK_WINDOW (dlg),
 					     GTK_WINDOW (CWID
 							 ("xkb_layout_chooser")));
+					gtk_window_set_modal (GTK_WINDOW
+							      (dlg), TRUE);
+
 					gtk_widget_show_all (dlg);
 				}
 			}
 
 			return;
 		}
+	if (search_pattern_list != NULL) {
+		g_strfreev (search_pattern_list);
+		search_pattern_list = NULL;
+	}
 	gtk_widget_destroy (GTK_WIDGET (dialog));
 }
 



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