From 094e4fc6ffd43790bb57cd03d189140da4ce0f51 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
Date: Sat, 15 Dec 2012 10:01:11 -0300
Subject: [PATCH shell] Journal list view: display buddies again - SL #4331
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
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>
---
src/jarabe/journal/listview.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/jarabe/journal/listview.py b/src/jarabe/journal/listview.py
index 2e67527..4955b86 100644
a
|
b
|
class BaseListView(Gtk.Bin): |
243 | 243 | if buddy is None: |
244 | 244 | cell.props.visible = False |
245 | 245 | return |
| 246 | # FIXME workaround for pygobject bug, see |
| 247 | # https://bugzilla.gnome.org/show_bug.cgi?id=689277 |
| 248 | # |
| 249 | # add_attribute with 'buddy' attribute in the cell should take |
| 250 | # care of setting it. |
| 251 | else: |
| 252 | cell.props.buddy = buddy |
246 | 253 | |
247 | 254 | progress = tree_model[tree_iter][ListModel.COLUMN_PROGRESS] |
248 | 255 | cell.props.visible = progress >= 100 |