fix gc menu
This commit is contained in:
parent
d10216f668
commit
db0fe24695
1 changed files with 2 additions and 1 deletions
|
@ -2454,6 +2454,7 @@ class GroupchatControl(ChatControlBase):
|
||||||
# show the popup now!
|
# show the popup now!
|
||||||
menu = xml.get_object('gc_occupants_menu')
|
menu = xml.get_object('gc_occupants_menu')
|
||||||
menu.show_all()
|
menu.show_all()
|
||||||
|
menu.attach_to_widget(gajim.interface.roster.window, None)
|
||||||
menu.popup(None, None, None, None, event.button, event.time)
|
menu.popup(None, None, None, None, event.button, event.time)
|
||||||
|
|
||||||
def _start_private_message(self, nick):
|
def _start_private_message(self, nick):
|
||||||
|
@ -2505,7 +2506,7 @@ class GroupchatControl(ChatControlBase):
|
||||||
if event.button == 3: # right click
|
if event.button == 3: # right click
|
||||||
widget.get_selection().select_path(path)
|
widget.get_selection().select_path(path)
|
||||||
iter_ = self.model.get_iter(path)
|
iter_ = self.model.get_iter(path)
|
||||||
if len(path) == 2:
|
if path.get_depth() == 2:
|
||||||
self.mk_menu(event, iter_)
|
self.mk_menu(event, iter_)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue