Ticket #4331: 0001-Journal-list-view-display-buddies-again-SL-4331.patch

File 0001-Journal-list-view-display-buddies-again-SL-4331.patch, 1.4 KB (added by manuq, 11 years ago)

Patch.

  • src/jarabe/journal/listview.py

    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): 
    243243        if buddy is None:
    244244            cell.props.visible = False
    245245            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
    246253
    247254        progress = tree_model[tree_iter][ListModel.COLUMN_PROGRESS]
    248255        cell.props.visible = progress >= 100