[gnome-tweak-tool] Sort comboboxes (bug 650792)



commit 63a241bcd6767f4a0d858be96ba35f0d0450dbaa
Author: John Stowers <john stowers gmail com>
Date:   Thu Jun 2 19:12:42 2011 +1200

    Sort comboboxes (bug 650792)

 gtweak/widgets.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtweak/widgets.py b/gtweak/widgets.py
index a077da2..5138f25 100644
--- a/gtweak/widgets.py
+++ b/gtweak/widgets.py
@@ -36,6 +36,7 @@ def build_combo_box_text(selected, *values):
     @values: a list of 2-tuples (value, name)
     """
     store = Gtk.ListStore(str, str)
+    store.set_sort_column_id(1, Gtk.SortType.ASCENDING)
 
     selected_iter = None
     for (val, name) in values:



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