parent
e0e3b9609a
commit
06c4ce60b9
gajim
|
@ -1247,8 +1247,13 @@ def get_accounts_info():
|
||||||
message = message.strip()
|
message = message.strip()
|
||||||
if message != '':
|
if message != '':
|
||||||
single_line += ': ' + message
|
single_line += ': ' + message
|
||||||
accounts.append({'name': account, 'status_line': single_line,
|
account_label = app.config.get_per(
|
||||||
'show': status, 'message': message})
|
'accounts', account, 'account_label')
|
||||||
|
accounts.append({'name': account,
|
||||||
|
'account_label': account_label or account,
|
||||||
|
'status_line': single_line,
|
||||||
|
'show': status,
|
||||||
|
'message': message})
|
||||||
return accounts
|
return accounts
|
||||||
|
|
||||||
def get_current_show(account):
|
def get_current_show(account):
|
||||||
|
|
|
@ -150,11 +150,11 @@ class NotificationAreaTooltip(StatusTable):
|
||||||
show_lock = False
|
show_lock = False
|
||||||
if message:
|
if message:
|
||||||
self.add_status_row(file_path, acct['show'],
|
self.add_status_row(file_path, acct['show'],
|
||||||
GLib.markup_escape_text(acct['name']) + ' - ' + message,
|
GLib.markup_escape_text(acct['account_label']) + ' - ' + message,
|
||||||
show_lock=show_lock, indent=False)
|
show_lock=show_lock, indent=False)
|
||||||
else:
|
else:
|
||||||
self.add_status_row(file_path, acct['show'],
|
self.add_status_row(file_path, acct['show'],
|
||||||
GLib.markup_escape_text(acct['name']), show_lock=show_lock,
|
GLib.markup_escape_text(acct['account_label']), show_lock=show_lock,
|
||||||
indent=False)
|
indent=False)
|
||||||
for line in acct['event_lines']:
|
for line in acct['event_lines']:
|
||||||
self.add_text_row(' ' + line, 1)
|
self.add_text_row(' ' + line, 1)
|
||||||
|
|
Loading…
Reference in New Issue