diff options
author | Gregory Warnes <greg@warnes.net> | 2013-04-04 10:43:55 -0400 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2013-04-04 10:43:55 -0400 |
commit | ed944b382a215d3020abe7ab9aafcbcbd16e8400 (patch) | |
tree | d98347f0ca0bdd4bd772133b44a84a3820f3e1f8 | |
parent | b0a4dc219edf953532c75b6f206684e7977f03c5 (diff) |
grc: adding sorting ability to GRC category tree.
-rw-r--r-- | grc/gui/BlockTreeWindow.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/grc/gui/BlockTreeWindow.py b/grc/gui/BlockTreeWindow.py index 62afb62056..945be10a50 100644 --- a/grc/gui/BlockTreeWindow.py +++ b/grc/gui/BlockTreeWindow.py @@ -70,6 +70,8 @@ class BlockTreeWindow(gtk.VBox): #try to enable the tooltips (available in pygtk 2.12 and above) try: self.treeview.set_tooltip_column(DOC_INDEX) except: pass + #setup sort order + column.set_sort_column_id(0) #setup drag and drop self.treeview.enable_model_drag_source(gtk.gdk.BUTTON1_MASK, DND_TARGETS, gtk.gdk.ACTION_COPY) self.treeview.connect('drag-data-get', self._handle_drag_get_data) |