action_button menu does not send inactive now
This commit is contained in:
parent
6c38bf93b4
commit
ba110194f8
1 changed files with 2 additions and 3 deletions
|
@ -224,6 +224,8 @@ class Chat:
|
||||||
def on_actions_button_clicked(self, widget):
|
def on_actions_button_clicked(self, widget):
|
||||||
'''popup action menu'''
|
'''popup action menu'''
|
||||||
menu = self.prepare_context_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.popup(None, None, None, 1, 0)
|
||||||
menu.show_all()
|
menu.show_all()
|
||||||
|
|
||||||
|
@ -464,9 +466,6 @@ class Chat:
|
||||||
|
|
||||||
def on_tab_eventbox_button_press_event(self, widget, event, child):
|
def on_tab_eventbox_button_press_event(self, widget, event, child):
|
||||||
if event.button == 3:
|
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)
|
n = self.notebook.page_num(child)
|
||||||
self.notebook.set_current_page(n)
|
self.notebook.set_current_page(n)
|
||||||
self.popup_menu(event)
|
self.popup_menu(event)
|
||||||
|
|
Loading…
Add table
Reference in a new issue