Ticket #3888: 0001-Journal-list-call-do_get_value-directly-to-get-the-b.patch

File 0001-Journal-list-call-do_get_value-directly-to-get-the-b.patch, 1.2 KB (added by manuq, 8 years ago)

Workaround patch.

  • src/jarabe/journal/listview.py

    From 8d67aa7f57c9ea2a3e2f050945efe2ce790a8447 Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
    Date: Thu, 22 Nov 2012 15:23:23 -0300
    Subject: [PATCH shell] Journal list: call do_get_value directly to get the
     buddy palette working again
    Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
    
    ---
     src/jarabe/journal/listview.py | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/src/jarabe/journal/listview.py b/src/jarabe/journal/listview.py
    index 4af6e3c..b5f061f 100644
    a b class CellRendererBuddy(CellRendererIcon): 
    678678        tree_model = self.tree_view.get_model()
    679679        row = tree_model[self.props.palette_invoker.path]
    680680
    681         if row[self._model_column_index] is not None:
    682             nick, xo_color = row[self._model_column_index]
     681        if row.model.do_get_value(row.iter, self._model_column_index) is not None:
     682            nick, xo_color = row.model.do_get_value(row.iter, self._model_column_index)
    683683            return BuddyPalette((nick, xo_color.to_string()))
    684684        else:
    685685            return None