summaryrefslogtreecommitdiff
path: root/src/tabs.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-03-11 02:04:20 +0100
committermathieui <mathieui@mathieui.net>2013-03-11 02:04:20 +0100
commit71c35eb279b2271b89896dcff551ba762f66b3a5 (patch)
tree280bc7e66b453310851dcb4e9793e9f4083561eb /src/tabs.py
parenteb2e5825bceec1171f0e154cb72f5870576a94f2 (diff)
downloadpoezio-71c35eb279b2271b89896dcff551ba762f66b3a5.tar.gz
poezio-71c35eb279b2271b89896dcff551ba762f66b3a5.tar.bz2
poezio-71c35eb279b2271b89896dcff551ba762f66b3a5.tar.xz
poezio-71c35eb279b2271b89896dcff551ba762f66b3a5.zip
Implement XEP-0118 (Fix #1840)
- Add new theming options - Show the tune in the roster (both in contact line and infowin) - add an option to show tunes as info messages
Diffstat (limited to 'src/tabs.py')
-rw-r--r--src/tabs.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tabs.py b/src/tabs.py
index 7f879aab..b0ad9569 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -2845,12 +2845,14 @@ class RosterInfoTab(Tab):
if isinstance(selected_row, Contact):
cont = selected_row
res = selected_row.get_highest_priority_resource()
- msg = 'Contact: %s (%s)\n%s connected resource%s\nCurrent status: %s' % (
+ msg = 'Contact: %s (%s)\n%s connected resource%s\nCurrent status: %s\nCurrent tune: %s' % (
cont.bare_jid,
res.presence if res else 'unavailable',
len(cont),
'' if len(cont) == 1 else 's',
- res.status if res else '',)
+ res.status if res else '',
+ common.format_tune_string(cont.tune),
+ )
elif isinstance(selected_row, Resource):
res = selected_row
msg = 'Resource: %s (%s)\nCurrent status: %s\nPriority: %s' % (