[accerciser/pygi] Fixing interface view's treeview attributes



commit b0feefa06b2fe85dd4ceff9178a34d0a672f0ffc
Author: Javier HernÃndez <jhernandez emergya es>
Date:   Tue Aug 23 18:41:41 2011 +0200

    Fixing interface view's treeview attributes

 plugins/interface_view.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/interface_view.py b/plugins/interface_view.py
index 0701daa..d93eebf 100644
--- a/plugins/interface_view.py
+++ b/plugins/interface_view.py
@@ -705,31 +705,31 @@ class _SectionHypertext(_InterfaceSection):
     treeview.set_model(self.links_model)
     crt = gtk.CellRendererText()
     tvc = gtk.TreeViewColumn(_('Name'))
+    tvc.add_attribute(crt, _("Name"), 1)
     tvc.set_sizing(gtk.TreeViewColumnSizing.AUTOSIZE)
     tvc.set_resizable(True)
     tvc.pack_start(crt, True)
-    tvc.add_attribute(crt, _("Name"), 1)
     treeview.append_column(tvc)
     crt = gtk.CellRendererText()
     tvc = gtk.TreeViewColumn(_('URI'))
+    tvc.add_attribute(crt, _('URI'), 3)
     tvc.set_sizing(gtk.TreeViewColumnSizing.AUTOSIZE)
     tvc.set_resizable(True)
     tvc.pack_start(crt, True)
-    tvc.add_attribute(crt, _('URI'), 3)
     treeview.append_column(tvc)
     crt = gtk.CellRendererText()
     tvc = gtk.TreeViewColumn(_('Start'))
+    tvc.add_attribute(crt, _('Start'), 4)
     tvc.set_sizing(gtk.TreeViewColumnSizing.AUTOSIZE)
     tvc.set_resizable(True)
     tvc.pack_start(crt, True)
-    tvc.add_attribute(crt, _('Start'), 4)
     treeview.append_column(tvc)
     crt = gtk.CellRendererText()
     tvc = gtk.TreeViewColumn(_('End'))
+    tvc.add_attribute(crt, _('End'), 5)
     tvc.set_sizing(gtk.TreeViewColumnSizing.AUTOSIZE)
     tvc.set_resizable(True)
     tvc.pack_start(crt, True)
-    tvc.add_attribute(crt, _('End'), 5)
     treeview.append_column(tvc)    
     selection = treeview.get_selection()
     show_button = ui_xml.get_object('button_hypertext_show')



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