Commit 2362db29 authored by Philipp Hörist's avatar Philipp Hörist

Remove unused methods

parent e6ac4e4b
......@@ -5063,75 +5063,6 @@ class RosterWindow:
menu.show_all()
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):
# iters must be all of the same type
model = self.modelfilter
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment