Index: remote_control.py =================================================================== --- remote_control.py (revision 6638) +++ remote_control.py (working copy) @@ -171,6 +171,7 @@ self.get_status, self.get_status_message, self.start_chat, + self.get_last_message ]) def raise_signal(self, signal, arg): @@ -574,6 +575,10 @@ NewChatDialog(account) return True + def get_last_message(self, *args): + print 'foo' + return 'foo' + if dbus_support.version[1] >= 30 and dbus_support.version[1] <= 40: method = dbus.method signal = dbus.signal @@ -605,3 +610,4 @@ account_info = method(INTERFACE)(account_info) get_unread_msgs_number = method(INTERFACE)(get_unread_msgs_number) start_chat = method(INTERFACE)(start_chat) + get_last_message = method(INTERFACE)(get_last_message) Index: gajim-remote.py =================================================================== --- gajim-remote.py (revision 6638) +++ gajim-remote.py (working copy) @@ -236,6 +236,11 @@ (_('account'), _('Starts chat, using this account'), True) ] ], + 'get_last_message': [ + _('Returns the newest received message'), + [ ] + ], + } if self.argv_len < 2 or \ sys.argv[1] not in self.commands.keys(): # no args or bad args