show_roster ==> toggle_roster_appearance
This commit is contained in:
parent
74b33c7825
commit
cc7c233e0d
2 changed files with 6 additions and 6 deletions
|
@ -45,9 +45,9 @@ _version = getattr(dbus, 'version', (0, 20, 0))
|
||||||
OBJ_PATH = '/org/gajim/dbus/RemoteObject'
|
OBJ_PATH = '/org/gajim/dbus/RemoteObject'
|
||||||
INTERFACE = 'org.gajim.dbus.RemoteInterface'
|
INTERFACE = 'org.gajim.dbus.RemoteInterface'
|
||||||
SERVICE = 'org.gajim.dbus'
|
SERVICE = 'org.gajim.dbus'
|
||||||
commands = ['help', 'show_roster', 'show_next_unread', 'list_contacts',
|
commands = ['help', 'toggle_roster_appearance', 'show_next_unread',
|
||||||
'list_accounts', 'change_status', 'new_message', 'send_message',
|
'list_contacts', 'list_accounts', 'change_status', 'new_message',
|
||||||
'contact_info']
|
'send_message', 'contact_info']
|
||||||
|
|
||||||
if _version[1] >= 41:
|
if _version[1] >= 41:
|
||||||
import dbus.service
|
import dbus.service
|
||||||
|
|
|
@ -82,7 +82,7 @@ class SignalObject(DbusPrototype):
|
||||||
DbusPrototype.__init__(self, OBJ_PATH, service)
|
DbusPrototype.__init__(self, OBJ_PATH, service)
|
||||||
else:
|
else:
|
||||||
DbusPrototype.__init__(self, OBJ_PATH, service,
|
DbusPrototype.__init__(self, OBJ_PATH, service,
|
||||||
[ self.show_roster,
|
[ self.toggle_roster_appearance,
|
||||||
self.show_next_unread,
|
self.show_next_unread,
|
||||||
self.list_contacts,
|
self.list_contacts,
|
||||||
self.list_accounts,
|
self.list_accounts,
|
||||||
|
@ -259,7 +259,7 @@ class SignalObject(DbusPrototype):
|
||||||
return None
|
return None
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def show_roster(self, *args):
|
def toggle_roster_appearance(self, *args):
|
||||||
''' shows/hides the roster window '''
|
''' shows/hides the roster window '''
|
||||||
win = self.plugin.roster.window
|
win = self.plugin.roster.window
|
||||||
if win.get_property('visible'):
|
if win.get_property('visible'):
|
||||||
|
@ -338,7 +338,7 @@ class SignalObject(DbusPrototype):
|
||||||
# prevent using decorators, because they are not supported
|
# prevent using decorators, because they are not supported
|
||||||
# on python < 2.4
|
# on python < 2.4
|
||||||
# FIXME: use decorators when python2.3 is OOOOOOLD
|
# 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_contacts = method(INTERFACE)(list_contacts)
|
||||||
list_accounts = method(INTERFACE)(list_accounts)
|
list_accounts = method(INTERFACE)(list_accounts)
|
||||||
show_next_unread = method(INTERFACE)(show_next_unread)
|
show_next_unread = method(INTERFACE)(show_next_unread)
|
||||||
|
|
Loading…
Add table
Reference in a new issue