Commit 98f2e2f6 authored by Daniel Brötzmann's avatar Daniel Brötzmann Committed by Philipp Hörist

RosterTooltip: Add hint for Observers group

parent a378b6b7
......@@ -5357,7 +5357,9 @@ def fill_column(self, col):
def query_tooltip(self, widget, x_pos, y_pos, _keyboard_mode, tooltip):
try:
row = widget.get_path_at_pos(x_pos, y_pos)[0]
path = widget.get_path_at_pos(x_pos, y_pos)
row = path[0]
col = path[1]
except TypeError:
self._roster_tooltip.clear_tooltip()
return False
......@@ -5378,6 +5380,15 @@ def query_tooltip(self, widget, x_pos, y_pos, _keyboard_mode, tooltip):
jid = model[iter_][Column.JID]
connected_contacts = []
if typ == 'group':
if jid == _('Observers'):
widget.set_tooltip_cell(tooltip, row, col, None)
tooltip.set_text(
_('Observers can see your status, but you '
'are not allowed to see theirs'))
return True
return False
if typ in ('contact', 'self_contact'):
contacts = app.contacts.get_contacts(account, jid)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment