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): |
46 | 46 | Gtk.TreeView.__init__(self) |
47 | 47 | self.set_headers_visible(False) |
48 | 48 | 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) |
49 | 52 | |
50 | 53 | def do_size_request(self, requisition): |
51 | 54 | # HACK: We tell the model that the view is just resizing so it can |