Skip to content
Snippets Groups Projects
Commit 80ceee57 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Remove unused methods

Action Button was removed in the last ChatControl redesign
parent 8f2630b1
No related branches found
No related tags found
No related merge requests found
...@@ -1044,16 +1044,6 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools): ...@@ -1044,16 +1044,6 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
def on_clear_formatting_menuitem_activate(self, widget): def on_clear_formatting_menuitem_activate(self, widget):
self.msg_textview.clear_tags() self.msg_textview.clear_tags()
def on_actions_button_clicked(self, widget):
"""
Popup action menu
"""
menu = self.prepare_context_menu(hide_buttonbar_items=True)
menu.show_all()
menu.attach_to_widget(widget, None)
gtkgui_helpers.popup_emoticons_under_button(menu, widget,
self.parent_win)
def update_tags(self): def update_tags(self):
self.conv_textview.update_tags() self.conv_textview.update_tags()
......
...@@ -451,11 +451,6 @@ class MessageWindow(object): ...@@ -451,11 +451,6 @@ class MessageWindow(object):
elif keyval == Gdk.KEY_m: # ALT + M show emoticons menu elif keyval == Gdk.KEY_m: # ALT + M show emoticons menu
control.emoticons_button.get_popover().show() control.emoticons_button.get_popover().show()
return True return True
elif keyval == Gdk.KEY_d: # ALT + D show actions menu
if Gtk.Settings.get_default().get_property(
'gtk-key-theme-name') != 'Emacs':
control.on_actions_button_clicked(control.actions_button)
return True
elif control.type_id == message_control.TYPE_GC and \ elif control.type_id == message_control.TYPE_GC and \
keyval == Gdk.KEY_t: # ALT + t keyval == Gdk.KEY_t: # ALT + t
control._on_change_subject_menuitem_activate(None) control._on_change_subject_menuitem_activate(None)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment