Ticket #4275: 0001-The-function-to-set-cell-data-now-needs-obligatory-u.patch

File 0001-The-function-to-set-cell-data-now-needs-obligatory-u.patch, 1.4 KB (added by manuq, 11 years ago)

Patch

  • src/view.py

    From 210298b04adcee07e271c6ada7ab40cb61430e7a Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
    Date: Fri, 30 Nov 2012 10:31:18 -0300
    Subject: [PATCH updater] The function to set cell data now needs obligatory
     user data argument - SL #4275
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
    
    This was preventing adding/removing groups via "Modifiy Activity
    Groups".
    
    Patch provided by Ajay Garg.
    
    GTK Reference:
    http://developer.gnome.org/gtk3/stable/GtkTreeViewColumn.html#GtkTreeCellDataFunc
    
    Signed-off-by: Manuel Quiñones <manuq@laptop.org>
    ---
     src/view.py | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/view.py b/src/view.py
    index 32cb580..046c99a 100755
    a b class GroupListView(Gtk.VBox): 
    252252        self.groupview.connect("drag_drop", drag_drop)
    253253        crtext = Gtk.CellRendererText()
    254254        column = Gtk.TreeViewColumn('Name', crtext)
    255         def group_name_markup(cell_layout, renderer, m, it):
     255        def group_name_markup(cell_layout, renderer, m, it, data):
    256256            renderer.set_property('markup', '<b>%s</b>\n<small>%s</small>' % \
    257257                                  (_e(m.get_value(it, model.DESCRIPTION_BIG)),
    258258                                   _e(m.get_value(it, model.UPDATE_URL))))