From 3661cc0770931ca27e517dcee792707fe8fe4622 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
Date: Sat, 24 Nov 2012 12:30:44 -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 | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/jarabe/journal/listview.py b/src/jarabe/journal/listview.py
index 9603ec3..99fa947 100644
a
|
b
|
class BaseListView(Gtk.Bin): |
243 | 243 | |
244 | 244 | def __buddies_set_data_cb(self, column, cell, tree_model, |
245 | 245 | tree_iter, data): |
| 246 | if cell._buddy_name is None: |
| 247 | cell.props.visible = False |
| 248 | return |
| 249 | |
246 | 250 | progress = tree_model[tree_iter][ListModel.COLUMN_PROGRESS] |
247 | 251 | cell.props.visible = progress >= 100 |
248 | 252 | |