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