From cc7c233e0d51ba5975b6ac14046b53362bc9eded Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Tue, 19 Jul 2005 14:25:41 +0000 Subject: [PATCH] show_roster ==> toggle_roster_appearance --- scripts/gajim-remote.py | 6 +++--- src/remote_control.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/gajim-remote.py b/scripts/gajim-remote.py index 52dea41bd..4b5e4c7de 100755 --- a/scripts/gajim-remote.py +++ b/scripts/gajim-remote.py @@ -45,9 +45,9 @@ _version = getattr(dbus, 'version', (0, 20, 0)) OBJ_PATH = '/org/gajim/dbus/RemoteObject' INTERFACE = 'org.gajim.dbus.RemoteInterface' SERVICE = 'org.gajim.dbus' -commands = ['help', 'show_roster', 'show_next_unread', 'list_contacts', - 'list_accounts', 'change_status', 'new_message', 'send_message', - 'contact_info'] +commands = ['help', 'toggle_roster_appearance', 'show_next_unread', + 'list_contacts', 'list_accounts', 'change_status', 'new_message', + 'send_message', 'contact_info'] if _version[1] >= 41: import dbus.service diff --git a/src/remote_control.py b/src/remote_control.py index 0191a8391..0da981892 100644 --- a/src/remote_control.py +++ b/src/remote_control.py @@ -82,7 +82,7 @@ class SignalObject(DbusPrototype): DbusPrototype.__init__(self, OBJ_PATH, service) else: DbusPrototype.__init__(self, OBJ_PATH, service, - [ self.show_roster, + [ self.toggle_roster_appearance, self.show_next_unread, self.list_contacts, self.list_accounts, @@ -259,7 +259,7 @@ class SignalObject(DbusPrototype): return None return result - def show_roster(self, *args): + def toggle_roster_appearance(self, *args): ''' shows/hides the roster window ''' win = self.plugin.roster.window if win.get_property('visible'): @@ -338,7 +338,7 @@ class SignalObject(DbusPrototype): # prevent using decorators, because they are not supported # on python < 2.4 # FIXME: use decorators when python2.3 is OOOOOOLD - show_roster = method(INTERFACE)(show_roster) + toggle_roster_appearance = method(INTERFACE)(toggle_roster_appearance) list_contacts = method(INTERFACE)(list_contacts) list_accounts = method(INTERFACE)(list_accounts) show_next_unread = method(INTERFACE)(show_next_unread)