Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
35ad0441 by wurstsalat at 2022-06-28T16:03:36+02:00
imprv: Roster: Display show value in tooltip
Fixes #11010
- - - - -
1 changed file:
- gajim/gtk/tooltips.py
Changes:
=====================================
gajim/gtk/tooltips.py
=====================================
@@ -206,6 +206,8 @@ def _add_resources(self, contact: types.BareContact) ->
None:
show_image.set_halign(Gtk.Align.START)
show_image.set_valign(Gtk.Align.CENTER)
+ show_string = helpers.get_uf_show(resource.show.value)
+
assert resource.jid.resource is not None
resource_string = GLib.markup_escape_text(resource.jid.resource)
resource_label = Gtk.Label()
@@ -213,7 +215,7 @@ def _add_resources(self, contact: types.BareContact) ->
None:
resource_label.set_xalign(0)
resource_label.set_ellipsize(Pango.EllipsizeMode.END)
resource_label.set_max_width_chars(30)
- resource_label.set_text(resource_string)
+ resource_label.set_text(f'{show_string} ({resource_string})')
base_box = Gtk.Box(spacing=6)
base_box.add(show_image)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/35ad0441714e9bf09e228ed1113a6fdf15b9161f
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/35ad0441714e9bf09e228ed1113a6fdf15b9161f
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits