menu are now shown before popup so that they are correctly placed.

This commit is contained in:
Yann Leboulanger 2006-05-26 13:25:31 +00:00
parent 3e1dd88ee0
commit d848e71d3b
3 changed files with 7 additions and 7 deletions

View File

@ -832,9 +832,9 @@ _('Connection with peer cannot be established.'))
self.set_buttons_sensitive(path, True)
event_button = gtkgui_helpers.get_possible_button_event(event)
self.file_transfers_menu.show_all()
self.file_transfers_menu.popup(None, self.tree, None,
event_button, event.time)
self.file_transfers_menu.show_all()
def on_transfers_list_key_press_event(self, widget, event):
'''when a key is pressed in the treeviews'''

View File

@ -1559,8 +1559,8 @@ class GroupchatControl(ChatControlBase):
# show the popup now!
menu = xml.get_widget('gc_occupants_menu')
menu.popup(None, None, None, event.button, event.time)
menu.show_all()
menu.popup(None, None, None, event.button, event.time)
def _start_private_message(self, nick):
gc_c = gajim.contacts.get_gc_contact(self.account, self.room_jid, nick)

View File

@ -1385,9 +1385,9 @@ class RosterWindow:
roster_contact_context_menu.attach_to_widget(self.tree, None)
roster_contact_context_menu.connect('selection-done',
gtkgui_helpers.destroy_widget)
roster_contact_context_menu.show_all()
roster_contact_context_menu.popup(None, None, None, event_button,
event.time)
roster_contact_context_menu.show_all()
def make_group_menu(self, event, iter):
'''Make group's popup menu'''
@ -1418,8 +1418,8 @@ class RosterWindow:
menu.attach_to_widget(self.tree, None)
menu.connect('selection-done', gtkgui_helpers.destroy_widget)
menu.popup(None, None, None, event_button, event.time)
menu.show_all()
menu.popup(None, None, None, event_button, event.time)
def make_transport_menu(self, event, iter):
'''Make transport's popup menu'''
@ -1484,8 +1484,8 @@ class RosterWindow:
menu.attach_to_widget(self.tree, None)
menu.connect('selection-done', gtkgui_helpers.destroy_widget)
menu.popup(None, None, None, event_button, event.time)
menu.show_all()
menu.popup(None, None, None, event_button, event.time)
def on_edit_account(self, widget, account):
if gajim.interface.instances[account].has_key('account_modification'):
@ -1602,8 +1602,8 @@ class RosterWindow:
menu.attach_to_widget(self.tree, None)
menu.connect('selection-done', gtkgui_helpers.destroy_widget)
menu.popup(None, self.tree, None, event_button, event.time)
menu.show_all()
menu.popup(None, self.tree, None, event_button, event.time)
def on_add_to_roster(self, widget, contact, account):
dialogs.AddNewContactWindow(account, contact.jid)
@ -3202,8 +3202,8 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
menu.attach_to_widget(self.tree, None)
menu.connect('selection-done', gtkgui_helpers.destroy_widget)
menu.popup(None, None, None, 1, etime)
menu.show_all()
menu.popup(None, None, None, 1, etime)
def show_title(self):
change_title_allowed = gajim.config.get('change_roster_title')