Improve the last commit, popup is shown under the button now.
This commit is contained in:
parent
4c29f03d6c
commit
dbdf6a135e
|
@ -483,7 +483,7 @@ class ChatControlBase(MessageControl):
|
|||
|
||||
elif event.keyval == gtk.keysyms.a and \
|
||||
(event.state & gtk.gdk.MOD1_MASK): # alt + a opens actions menu
|
||||
self.on_actions_button_clicked(None)
|
||||
self.on_actions_button_clicked(self.actions_button)
|
||||
return False
|
||||
|
||||
def _on_message_textview_key_press_event(self, widget, event):
|
||||
|
@ -1029,9 +1029,9 @@ class ChatControl(ChatControlBase):
|
|||
|
||||
# for muc use:
|
||||
# widget = self.xml.get_widget('muc_window_actions_button')
|
||||
widget = self.xml.get_widget('message_window_actions_button')
|
||||
id = widget.connect('clicked', self.on_actions_button_clicked)
|
||||
self.handlers[id] = widget
|
||||
self.actions_button = self.xml.get_widget('message_window_actions_button')
|
||||
id = self.actions_button.connect('clicked', self.on_actions_button_clicked)
|
||||
self.handlers[id] = self.actions_button
|
||||
|
||||
widget = self.xml.get_widget('send_file_button')
|
||||
id = widget.connect('clicked', self._on_send_file_menuitem_activate)
|
||||
|
|
|
@ -173,9 +173,9 @@ class GroupchatControl(ChatControlBase):
|
|||
self.is_continued=is_continued
|
||||
self.is_anonymous = True
|
||||
|
||||
widget = self.xml.get_widget('muc_window_actions_button')
|
||||
id = widget.connect('clicked', self.on_actions_button_clicked)
|
||||
self.handlers[id] = widget
|
||||
self.actions_button = self.xml.get_widget('muc_window_actions_button')
|
||||
id = self.actions_button.connect('clicked', self.on_actions_button_clicked)
|
||||
self.handlers[id] = self.actions_button
|
||||
|
||||
widget = self.xml.get_widget('change_nick_button')
|
||||
id = widget.connect('clicked', self._on_change_nick_menuitem_activate)
|
||||
|
|
Loading…
Reference in New Issue