action_button menu does not send inactive now

This commit is contained in:
Nikos Kouremenos 2005-08-17 09:49:21 +00:00
parent 6c38bf93b4
commit ba110194f8
1 changed files with 2 additions and 3 deletions

View File

@ -224,6 +224,8 @@ class Chat:
def on_actions_button_clicked(self, widget):
'''popup action menu'''
menu = self.prepare_context_menu()
self.popup_is_shown = True
menu.connect('deactivate', self.on_popup_deactivate)
menu.popup(None, None, None, 1, 0)
menu.show_all()
@ -464,9 +466,6 @@ class Chat:
def on_tab_eventbox_button_press_event(self, widget, event, child):
if event.button == 3:
#FIXME: uncomment this code and make sure we do not send inactive chatstate
#self.popup_is_shown = True
#menu.connect('deactivate', self.on_popup_deactivate)
n = self.notebook.page_num(child)
self.notebook.set_current_page(n)
self.popup_menu(event)