[gnome-control-center] Sort the layout list in the chooser



commit 28d69973d2dccc355069788deb2208b3ce415b66
Author: Sergey V. Udaltsov <svu gnome org>
Date:   Fri Feb 4 22:54:33 2011 +0000

    Sort the layout list in the chooser

 panels/region/gnome-region-panel-xkbltadd.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/panels/region/gnome-region-panel-xkbltadd.c b/panels/region/gnome-region-panel-xkbltadd.c
index a4508bf..3196fad 100644
--- a/panels/region/gnome-region-panel-xkbltadd.c
+++ b/panels/region/gnome-region-panel-xkbltadd.c
@@ -91,7 +91,8 @@ xkb_layout_chooser_response (GtkDialog * dialog,
 					    gkbd_keyboard_drawing_dialog_new
 					    ();
 					gkbd_keyboard_drawing_dialog_set_layout
-					    (dlg, config_registry, selected_id);
+					    (dlg, config_registry,
+					     selected_id);
 					gtk_window_set_transient_for
 					    (GTK_WINDOW (dlg),
 					     GTK_WINDOW (CWID
@@ -165,6 +166,9 @@ xkb_layout_filter_changed (GtkBuilder * chooser_dialog)
 	xkl_config_registry_search_by_pattern (config_registry, pattern,
 					       (TwoConfigItemsProcessFunc)
 					       (xkl_layout_add_to_filtered_list), chooser_dialog);
+	gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (model),
+					      COMBO_BOX_MODEL_COL_SORT,
+					      GTK_SORT_ASCENDING);
 }
 
 static void



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