[gnome-tweak-tool] Sort comboboxes by value not name
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweak-tool] Sort comboboxes by value not name
- Date: Mon, 20 Jun 2011 09:16:48 +0000 (UTC)
commit a38632a1aefa55a4691fbacb9e3c26f1427c808a
Author: John Stowers <john stowers gmail com>
Date: Mon Jun 20 09:50:10 2011 +1200
Sort comboboxes by value not name
gtweak/widgets.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtweak/widgets.py b/gtweak/widgets.py
index 05277a4..6945614 100644
--- a/gtweak/widgets.py
+++ b/gtweak/widgets.py
@@ -65,7 +65,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)
+ store.set_sort_column_id(0, 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]