Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Quiñones <manuq@laptop.org>2012-12-15 13:01:11 (GMT)
committer Manuel Quiñones <manuq@laptop.org>2012-12-17 21:32:13 (GMT)
commited18662f52cc9066344ef6f8f10712c44e9d6ee7 (patch)
tree36e59ad6b7046f667c30420ec5ff89c39d6d331a
parentd7ea8570b1da8f81aebf5df19e26bab003884d1b (diff)
Journal list view: display buddies again - SL #4331
Use the set_cell_data_func to set the buddy, as the add_attribute with 'buddy' attribute is not working. This is another workaround for pygobject bug https://bugzilla.gnome.org/show_bug.cgi?id=689277 same as in commit 9e494ef0 . Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
-rw-r--r--src/jarabe/journal/listview.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/jarabe/journal/listview.py b/src/jarabe/journal/listview.py
index 2e67527..c040681 100644
--- a/src/jarabe/journal/listview.py
+++ b/src/jarabe/journal/listview.py
@@ -243,6 +243,12 @@ class BaseListView(Gtk.Bin):
if buddy is None:
cell.props.visible = False
return
+ # FIXME workaround for pygobject bug, see
+ # https://bugzilla.gnome.org/show_bug.cgi?id=689277
+ #
+ # add_attribute with 'buddy' attribute in the cell should take
+ # care of setting it.
+ cell.props.buddy = buddy
progress = tree_model[tree_iter][ListModel.COLUMN_PROGRESS]
cell.props.visible = progress >= 100