Ticket #4274: 0002-Update-Software-fix-activities-selection-SL-4274.patch

File 0002-Update-Software-fix-activities-selection-SL-4274.patch, 1.5 KB (added by manuq, 11 years ago)

Patch.

  • src/view.py

    From 366ade8e3dfff1f73c2ef9e26f816e788e234aa2 Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
    Date: Mon, 3 Dec 2012 13:31:41 -0300
    Subject: [PATCH updater 2/2] Update Software: fix activities selection - SL
     #4274
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
    
    The method convert_path_to_child_path() of Gtk.TreeModelFilter expects
    a Gtk.TreePath [1], but the toggled signal of Gtk.CellRendererToggle
    returns a string representation of it [2], so it needs to be
    converted.
    
    [1] http://developer.gnome.org/gtk3/stable/GtkTreeModelFilter.html#gtk-tree-model-filter-convert-path-to-child-path
    [2] http://developer.gnome.org/gtk3/stable/GtkCellRendererToggle.html#GtkCellRendererToggle-toggled
    
    Signed-off-by: Manuel Quiñones <manuq@laptop.org>
    ---
     src/view.py | 1 +
     1 file changed, 1 insertion(+)
    
    diff --git a/src/view.py b/src/view.py
    index 046c99a..9ba9ab3 100755
    a b class ActivityListView(Gtk.ScrolledWindow): 
    8484        if self.activity_updater._in_sugar:
    8585            crbool.set_property('indicator_size', style.zoom(26))
    8686        def toggled_cb(crbool, path, self):
     87            path = Gtk.TreePath(path)
    8788            path = self.ftreestore.convert_path_to_child_path(path)
    8889            self.activity_updater.activity_list.toggle_select(path)
    8990            self.activity_pane._refresh_update_size()