From 22499022dcc3a91293b35e7d761fcc2d1802f2dd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
Date: Sat, 24 Nov 2012 12:56:35 -0300
Subject: [PATCH shell 2/2] Journal list view: make buddy cells invisible if
the cell doesn't have a buddy - SL #4190
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
---
src/jarabe/journal/listview.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/jarabe/journal/listview.py b/src/jarabe/journal/listview.py
index 0cf6d35..a03b948 100644
a
|
b
|
class BaseListView(Gtk.Bin): |
239 | 239 | |
240 | 240 | def __buddies_set_data_cb(self, column, cell, tree_model, |
241 | 241 | tree_iter, data): |
| 242 | buddy = tree_model.do_get_value(tree_iter, cell._model_column_index) |
| 243 | if buddy is None: |
| 244 | cell.props.visible = False |
| 245 | return |
| 246 | |
242 | 247 | progress = tree_model[tree_iter][ListModel.COLUMN_PROGRESS] |
243 | 248 | cell.props.visible = progress >= 100 |
244 | 249 | |