bug 1772, correct event handling

svn: r20845
This commit is contained in:
Benny Malengier 2012-12-26 22:22:21 +00:00
parent e434d618a1
commit 28c25286ad
2 changed files with 6 additions and 0 deletions

View File

@ -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):
"""

View File

@ -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):
"""