Ticket #3921: 0001-Journal-TreeView-make-sure-Palette-is-hidden-when-re.patch

File 0001-Journal-TreeView-make-sure-Palette-is-hidden-when-re.patch, 1.3 KB (added by erikos, 8 years ago)

Journal TreeView: make sure Palette is hidden when resuming Activity

  • src/jarabe/journal/listview.py

    From 227e8145b58b6f14af13e5e53f04b3c6fc2192a5 Mon Sep 17 00:00:00 2001
    From: Simon Schampijer <simon@laptop.org>
    Date: Tue, 30 Oct 2012 11:01:24 +0100
    Subject: [PATCH shell] Journal TreeView: make sure Palette is hidden when
     resuming Activity, SL #3921
    Without this patch when tapping on a TreeView
    we do get a GDK_CROSSING_UNGRAB leave event after
    the TOUCH_END leave event. See also
    590785f7d1f1f2a264da1327580c580b7a77f44a (toolkit-gtk3)
    for the same root issue we had in the EventIcon.
    Because of this the Palette did not go away when
    resuming an activity from the Journal, SL #3921.
    Signed-off-by: Simon Schampijer <simon@laptop.org>
     src/jarabe/journal/listview.py | 3 +++
     1 file changed, 3 insertions(+)
    diff --git a/src/jarabe/journal/listview.py b/src/jarabe/journal/listview.py
    index 6d9cc57..4af6e3c 100644
    a b class TreeView(Gtk.TreeView): 
    4646        Gtk.TreeView.__init__(self)
    4747        self.set_headers_visible(False)
    4848        self.set_enable_search(False)
     49        self.add_events(Gdk.EventMask.BUTTON_PRESS_MASK |
     50                        Gdk.EventMask.TOUCH_MASK |
     51                        Gdk.EventMask.BUTTON_RELEASE_MASK)
    5053    def do_size_request(self, requisition):
    5154        # HACK: We tell the model that the view is just resizing so it can