bug 1772, correct event handling
svn: r20845
This commit is contained in:
parent
e434d618a1
commit
28c25286ad
@ -107,10 +107,13 @@ class EmbeddedList(ButtonTab):
|
||||
#ref = self.get_selected()
|
||||
#if ref:
|
||||
self.right_click(obj, event)
|
||||
return True
|
||||
elif event.type == Gdk.EventType.BUTTON_PRESS and event.button == 2:
|
||||
fun = self.get_middle_click()
|
||||
if fun:
|
||||
fun()
|
||||
return True
|
||||
return False
|
||||
|
||||
def get_popup_menu_items(self):
|
||||
"""
|
||||
|
@ -113,10 +113,13 @@ class GroupEmbeddedList(EmbeddedList):
|
||||
if obj and obj[1]:
|
||||
self._tmpgroup = obj[0]
|
||||
self.right_click(obj[1], event)
|
||||
return True
|
||||
elif event.type == Gdk.EventType.BUTTON_PRESS and event.button == 2:
|
||||
fun = self.get_middle_click()
|
||||
if fun:
|
||||
fun()
|
||||
return True
|
||||
return False
|
||||
|
||||
def is_empty(self):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user