Don't activate EventIcons after touch long press

Steps to reproduce:

1.  Long press activity icon on homeview
Expcected:  Palette invokes, icon not activated
Actual:     Palette invokes, icon also activated, activity launched

This was because the "activate" signal was emitted before the
palette invoker got it's signal, meaning the palette invoker couldn't
scilence the event.
This commit is contained in:
Sam Parkinson 2016-06-15 08:01:11 +10:00
parent eae44b55cc
commit ed5e50239b
No known key found for this signature in database
GPG Key ID: 34E268B2FA2F8B13

View File

@ -576,6 +576,10 @@ class EventIcon(Gtk.EventBox):
Gdk.EventMask.TOUCH_MASK |
Gdk.EventMask.BUTTON_RELEASE_MASK)
self.connect('button-release-event', self.__button_release_event_cb)
# Connect after the default so that the palette can silence events
# for example, after a touch palette invocation
self.connect_after('button-release-event',
self.__button_release_event_cb)
for key, value in kwargs.iteritems():
self.set_property(key, value)