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

Remove unused methods

parent 6881c696
No related branches found
No related tags found
No related merge requests found
...@@ -5063,75 +5063,6 @@ def make_groupchat_menu(self, event, titer): ...@@ -5063,75 +5063,6 @@ def make_groupchat_menu(self, event, titer):
menu.show_all() menu.show_all()
menu.popup(None, None, None, None, event_button, event.time) menu.popup(None, None, None, None, event_button, event.time)
def get_and_connect_advanced_menuitem_menu(self, account):
"""
Add FOR ACCOUNT options
"""
xml = get_builder('advanced_menuitem_menu.ui')
advanced_menuitem_menu = xml.get_object('advanced_menuitem_menu')
xml_console_menuitem = xml.get_object('xml_console_menuitem')
archiving_preferences_menuitem = xml.get_object(
'archiving_preferences_menuitem')
privacy_lists_menuitem = xml.get_object('privacy_lists_menuitem')
administrator_menuitem = xml.get_object('administrator_menuitem')
send_server_message_menuitem = xml.get_object(
'send_server_message_menuitem')
set_motd_menuitem = xml.get_object('set_motd_menuitem')
update_motd_menuitem = xml.get_object('update_motd_menuitem')
delete_motd_menuitem = xml.get_object('delete_motd_menuitem')
xml_console_menuitem.connect('activate',
self.on_xml_console_menuitem_activate, account)
if app.connections[account]:
if app.connections[account].get_module('PrivacyLists').supported:
privacy_lists_menuitem.connect('activate',
self.on_privacy_lists_menuitem_activate, account)
else:
privacy_lists_menuitem.set_sensitive(False)
if app.connections[account].get_module('MAM').available:
archiving_preferences_menuitem.connect(
'activate',
self.on_archiving_preferences_menuitem_activate, account)
else:
archiving_preferences_menuitem.set_sensitive(False)
if app.connections[account].is_zeroconf:
administrator_menuitem.set_sensitive(False)
send_server_message_menuitem.set_sensitive(False)
set_motd_menuitem.set_sensitive(False)
update_motd_menuitem.set_sensitive(False)
delete_motd_menuitem.set_sensitive(False)
else:
send_server_message_menuitem.connect('activate',
self.on_send_server_message_menuitem_activate, account)
set_motd_menuitem.connect('activate',
self.on_set_motd_menuitem_activate, account)
update_motd_menuitem.connect('activate',
self.on_update_motd_menuitem_activate, account)
delete_motd_menuitem.connect('activate',
self.on_delete_motd_menuitem_activate, account)
advanced_menuitem_menu.show_all()
return advanced_menuitem_menu
def add_history_manager_menuitem(self, menu):
"""
Add a separator and History Manager menuitem BELOW for account menuitems
"""
item = Gtk.SeparatorMenuItem.new() # separator
menu.append(item)
# History manager
item = Gtk.MenuItem.new_with_mnemonic(_('History Manager'))
menu.append(item)
item.connect('activate', self.on_history_manager_menuitem_activate)
def show_appropriate_context_menu(self, event, iters): def show_appropriate_context_menu(self, event, iters):
# iters must be all of the same type # iters must be all of the same type
model = self.modelfilter model = self.modelfilter
......
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