diff options
author | Manuel Quiñones <manuq@laptop.org> | 2012-12-15 14:27:40 (GMT) |
---|---|---|
committer | Manuel Quiñones <manuq@laptop.org> | 2012-12-17 21:33:02 (GMT) |
commit | b496eecd315442ad050eb62610b6e5faed001436 (patch) | |
tree | 7593d39119d20a4edf491a9b1a87f87a9e4e0095 | |
parent | ed18662f52cc9066344ef6f8f10712c44e9d6ee7 (diff) |
Journal list view: use one column for each buddy to get the original width - SL #4331
Otherwise if the row has invisible buddy cells the other buddy cells
are expanded horizontally to fit the column width.
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
-rw-r--r-- | src/jarabe/journal/listview.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/jarabe/journal/listview.py b/src/jarabe/journal/listview.py index c040681..3005d2f 100644 --- a/src/jarabe/journal/listview.py +++ b/src/jarabe/journal/listview.py @@ -172,13 +172,15 @@ class BaseListView(Gtk.Bin): ListModel.COLUMN_TITLE) self.tree_view.append_column(self._title_column) - buddies_column = Gtk.TreeViewColumn() - buddies_column.props.sizing = Gtk.TreeViewColumnSizing.FIXED - self.tree_view.append_column(buddies_column) for column_index in [ListModel.COLUMN_BUDDY_1, ListModel.COLUMN_BUDDY_2, ListModel.COLUMN_BUDDY_3]: + + buddies_column = Gtk.TreeViewColumn() + buddies_column.props.sizing = Gtk.TreeViewColumnSizing.FIXED + self.tree_view.append_column(buddies_column) + cell_icon = CellRendererBuddy(self.tree_view, column_index=column_index) buddies_column.pack_start(cell_icon, True) |