Merge branch 'long-press-eventicons' of https://github.com/samdroid-apps/sugar-toolkit-gtk3
This commit is contained in:
commit
4009e2a476
@ -797,7 +797,10 @@ class EventIcon(Gtk.EventBox):
|
||||
self.add_events(Gdk.EventMask.BUTTON_PRESS_MASK |
|
||||
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)
|
||||
|
||||
|
@ -1381,6 +1381,7 @@ class CursorInvoker(Invoker):
|
||||
|
||||
def __long_pressed_event_cb(self, controller, x, y, widget):
|
||||
self._long_pressed_recognized = True
|
||||
x, y = widget.get_window().get_root_coords(x, y)
|
||||
self.notify_right_click(x, y)
|
||||
|
||||
def get_toplevel(self):
|
||||
|
Loading…
Reference in New Issue
Block a user