Fixes in treeview broke listview, now fixed

simplified unicode/str casting
columnorder working


svn: r19990
This commit is contained in:
Benny Malengier
2012-07-11 17:50:51 +00:00
parent 4c5470492f
commit 9e400a2ca3
10 changed files with 51 additions and 42 deletions

View File

@@ -82,7 +82,7 @@ class ColumnOrder(Gtk.VBox):
self.config = config
self.on_apply = on_apply
self.pack_start(Gtk.Label(' ', True, True, 0), expand=False, fill=False)
self.pack_start(Gtk.Label(label=' '), False, False, 0)
self.startrow = 0
if self.treeview:
@@ -90,15 +90,15 @@ class ColumnOrder(Gtk.VBox):
_('Tree View: first column "%s" cannot be changed') %
column_names[0])
self.startrow = 1
self.pack_start(label, expand=False, fill=False)
self.pack_start(Gtk.Label(' ', True, True, 0), expand=False, fill=False)
self.pack_start(label, False, False, 0)
self.pack_start(Gtk.Label(label=' '), False, False, 0)
self.pack_start(Gtk.Label(_('Drag and drop the columns to change'
' the order', True, True, 0)), expand=False, fill=False)
self.pack_start(Gtk.Label(' ', True, True, 0), expand=False, fill=False)
self.pack_start(Gtk.Label(label=_('Drag and drop the columns to change'
' the order')), False, False, 0)
self.pack_start(Gtk.Label(label=' '), False, False,0)
hbox = Gtk.HBox()
hbox.set_spacing(10)
hbox.pack_start(Gtk.Label(' ', True, True, 0))
hbox.pack_start(Gtk.Label(label=' '), True, True, 0)
scroll = Gtk.ScrolledWindow()
scroll.set_size_request(300,300)
hbox.pack_start(scroll, True, True, 0)