Philipp Hörist pushed to branch master at gajim / gajim


Commits:
7922bd10 by Philipp Hörist at 2024-05-21T12:40:26+02:00
cfix: Reactions: Fix emoji presentation in tooltip

- - - - -


1 changed file:

- gajim/gtk/conversation/reactions_bar.py


Changes:

=====================================
gajim/gtk/conversation/reactions_bar.py
=====================================
@@ -140,8 +140,12 @@ def __init__(self, emoji: str, reaction_data: 
list[ReactionData]) -> None:
         Gtk.Button.__init__(self)
         self.emoji = emoji
 
+        # Add emoji presentation selector, otherwise depending on the font
+        # emojis might be displayed in its text variant
+        emoji_presentation_form = f'{emoji}\uFE0F'
+
         format_string = app.settings.get('date_time_format')
-        tooltip_markup = f'<span size="200%">{emoji}</span>\n'
+        tooltip_markup = f'<span 
size="200%">{emoji_presentation_form}</span>\n'
 
         self.from_us = False
         for reaction in reaction_data[:MAX_USERS]:
@@ -160,9 +164,7 @@ def __init__(self, emoji: str, reaction_data: 
list[ReactionData]) -> None:
         if self.from_us:
             self.get_style_context().add_class('reaction-from-us')
 
-        # Add emoji presentation selector, otherwise depending on the font
-        # emojis might be displayed in its text variant
-        emoji_label = Gtk.Label(label=f'{emoji}\uFE0F')
+        emoji_label = Gtk.Label(label=emoji_presentation_form)
         count_label = Gtk.Label(label=str(len(reaction_data)))
         count_label.get_style_context().add_class('monospace')
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/7922bd103e03d5b433514d01f0e21daabf235eff

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/7922bd103e03d5b433514d01f0e21daabf235eff
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- commits@gajim.org
To unsubscribe send an email to commits-le...@gajim.org

Reply via email to