changeset 5b2f3b22ed6c in /home/hg/repos/gajim
branches: gtk3
details:http://hg.gajim.org/gajim?cmd=changeset;node=5b2f3b22ed6c
description: don't redraw roster line when it's not necessary
diffstat:
src/gui_interface.py | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diffs (33 lines):
diff -r 83684b2793cd -r 5b2f3b22ed6c src/gui_interface.py
--- a/src/gui_interface.py Mon Jul 15 16:03:07 2013 +0200
+++ b/src/gui_interface.py Tue Jul 16 18:03:58 2013 +0200
@@ -788,21 +788,24 @@
# another of our instance removed a contact. Remove it here too
self.roster.remove_contact(obj.jid, account, backend=True)
return
+ update = False
if contacts[0].sub != obj.sub or contacts[0].ask != obj.ask\
or old_groups != obj.groups:
# c.get_shown_groups() has changed. Reflect that in
# roster_window
self.roster.remove_contact(obj.jid, account, force=True)
+ update = True
for contact in contacts:
contact.name = obj.nickname or ''
contact.sub = obj.sub
contact.ask = obj.ask
contact.groups = obj.groups or []
- self.roster.add_contact(obj.jid, account)
- # Refilter and update old groups
- for group in old_groups:
- self.roster.draw_group(group, account)
- self.roster.draw_contact(obj.jid, account)
+ if update:
+ self.roster.add_contact(obj.jid, account)
+ # Refilter and update old groups
+ for group in old_groups:
+ self.roster.draw_group(group, account)
+ self.roster.draw_contact(obj.jid, account)
if obj.jid in self.instances[account]['sub_request'] and obj.sub in (
'from', 'both'):
self.instances[account]['sub_request'][obj.jid].window.destroy()
changeset 24378d4b6550 in /home/hg/repos/gajim
branches: gtk3
details:http://hg.gajim.org/gajim?cmd=changeset;node=24378d4b6550
description: distinguish console-printed strings in translation files. Fixes #7267
diffstat:
src/gajim-remote.py | 52 ++++++++++++++++++++++++++--------------------------
1 files changed, 26 insertions(+), 26 deletions(-)
diffs (163 lines):
diff -r 1a922a841545 -r 24378d4b6550 src/gajim-remote.py
--- a/src/gajim-remote.py Mon Jul 08 15:46:01 2013 +0200
+++ b/src/gajim-remote.py Mon Jul 15 15:13:39 2013 +0200
@@ -93,7 +93,7 @@
_('Prints a list of all contacts in the roster. Each contact '
'appears on a separate line'),
[
- (_('account'), _('show only contacts of the given account'),
+ (_('?CLI:account'), _('show only contacts of the given account'),
False)
]
@@ -106,9 +106,9 @@
_('Changes the status of account or accounts'),
[
#offline, online, chat, away, xa, dnd, invisible should not be translated
- (_('status'), _('one of: offline, online, chat, away, xa, dnd, invisible. If not set, use account\'s previous status'), False),
- (_('message'), _('status message'), False),
- (_('account'), _('change status of account "account". '
+ (_('?CLI:status'), _('one of: offline, online, chat, away, xa, dnd, invisible. If not set, use account\'s previous status'), False),
+ (_('?CLI:message'), _('status message'), False),
+ (_('?CLI:account'), _('change status of account "account". '
'If not specified, try to change status of all accounts that have '
'"sync with global status" option set'), False)
]
@@ -116,9 +116,9 @@
'set_priority': [
_('Changes the priority of account or accounts'),
[
- (_('priority'), _('priority you want to give to the account'),
+ (_('?CLI:priority'), _('priority you want to give to the account'),
True),
- (_('account'), _('change the priority of the given account. '
+ (_('?CLI:account'), _('change the priority of the given account. '
'If not specified, change status of all accounts that have'
' "sync with global status" option set'), False)
]
@@ -128,9 +128,9 @@
[
('jid', _('JID of the contact that you want to chat with'),
True),
- (_('account'), _('if specified, contact is taken from the '
+ (_('?CLI:account'), _('if specified, contact is taken from the '
'contact list of this account'), False),
- (_('message'),
+ (_('?CLI:message'),
_('message content. The account must be specified or ""'),
False)
]
@@ -141,10 +141,10 @@
'without \'OpenPGP key\', just set \'OpenPGP key\' to \'\'.'),
[
('jid', _('JID of the contact that will receive the message'), True),
- (_('message'), _('message contents'), True),
+ (_('?CLI:message'), _('message contents'), True),
(_('pgp key'), _('if specified, the message will be encrypted '
'using this public key'), False),
- (_('account'), _('if specified, the message will be sent '
+ (_('?CLI:account'), _('if specified, the message will be sent '
'using this account'), False),
]
],
@@ -155,10 +155,10 @@
[
('jid', _('JID of the contact that will receive the message'), True),
(_('subject'), _('message subject'), True),
- (_('message'), _('message contents'), True),
+ (_('?CLI:message'), _('message contents'), True),
(_('pgp key'), _('if specified, the message will be encrypted '
'using this public key'), False),
- (_('account'), _('if specified, the message will be sent '
+ (_('?CLI:account'), _('if specified, the message will be sent '
'using this account'), False),
]
],
@@ -166,8 +166,8 @@
_('Sends new message to a groupchat you\'ve joined.'),
[
('room_jid', _('JID of the room that will receive the message'), True),
- (_('message'), _('message contents'), True),
- (_('account'), _('if specified, the message will be sent '
+ (_('?CLI:message'), _('message contents'), True),
+ (_('?CLI:account'), _('if specified, the message will be sent '
'using this account'), False),
]
],
@@ -188,7 +188,7 @@
[
(_('file'), _('File path'), True),
('jid', _('JID of the contact'), True),
- (_('account'), _('if specified, file will be sent using this '
+ (_('?CLI:account'), _('if specified, file will be sent using this '
'account'), False)
]
],
@@ -218,7 +218,7 @@
_('Removes contact from roster'),
[
('jid', _('JID of the contact'), True),
- (_('account'), _('if specified, contact is taken from the '
+ (_('?CLI:account'), _('if specified, contact is taken from the '
'contact list of this account'), False)
]
@@ -227,21 +227,21 @@
_('Adds contact to roster'),
[
(_('jid'), _('JID of the contact'), True),
- (_('account'), _('Adds new contact to this account'), False)
+ (_('?CLI:account'), _('Adds new contact to this account'), False)
]
],
'get_status': [
_('Returns current status (the global one unless account is specified)'),
[
- (_('account'), '', False)
+ (_('?CLI:account'), '', False)
]
],
'get_status_message': [
_('Returns current status message (the global one unless account is specified)'),
[
- (_('account'), '', False)
+ (_('?CLI:account'), '', False)
]
],
@@ -252,7 +252,7 @@
'start_chat': [
_('Opens \'Start Chat\' dialog'),
[
- (_('account'), _('Starts chat, using this account'), True)
+ (_('?CLI:account'), _('Starts chat, using this account'), True)
]
],
'send_xml': [
@@ -277,18 +277,18 @@
_('Handle a xmpp:/ uri'),
[
(_('uri'), _('URI to handle'), True),
- (_('account'), _('Account in which you want to handle it'),
+ (_('?CLI:account'), _('Account in which you want to handle it'),
False),
- (_('message'), _('Message content'), False)
+ (_('?CLI:message'), _('Message content'), False)
]
],
'join_room': [
_('Join a MUC room'),
[
- (_('room'), _('Room JID'), True),
- (_('nick'), _('Nickname to use'), False),
- (_('password'), _('Password to enter the room'), False),
- (_('account'), _('Account from which you want to enter the '
+ (_('?CLI:room'), _('Room JID'), True),
+ (_('?CLI:nick'), _('Nickname to use'), False),
+ (_('?CLI:password'), _('Password to enter the room'), False),
+ (_('?CLI:account'), _('Account from which you want to enter the '
'room'), False)
]
],