Merge branch 'activate_on_left_click_only' of https://github.com/godiard/sugar-toolkit-gtk3
This commit is contained in:
commit
e990ec7703
@ -762,9 +762,10 @@ class EventIcon(Gtk.EventBox):
|
|||||||
self.set_palette(Palette(text))
|
self.set_palette(Palette(text))
|
||||||
|
|
||||||
def __button_release_event_cb(self, icon, event):
|
def __button_release_event_cb(self, icon, event):
|
||||||
alloc = self.get_allocation()
|
if event.button == 1:
|
||||||
if 0 < event.x < alloc.width and 0 < event.y < alloc.height:
|
alloc = self.get_allocation()
|
||||||
self.emit('activate')
|
if 0 < event.x < alloc.width and 0 < event.y < alloc.height:
|
||||||
|
self.emit('activate')
|
||||||
|
|
||||||
|
|
||||||
class CanvasIcon(EventIcon):
|
class CanvasIcon(EventIcon):
|
||||||
|
Loading…
Reference in New Issue
Block a user