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


Commits:
38f98959 by nicoco at 2025-10-10T15:55:40+00:00
feat: Customize emojis list for quick reactions

Implements: https://dev.gajim.org/gajim/gajim/-/issues/11899

- - - - -


2 changed files:

- gajim/common/setting_values.py
- gajim/gtk/conversation/rows/widgets.py


Changes:

=====================================
gajim/common/setting_values.py
=====================================
@@ -129,6 +129,7 @@ class _ACCOUNTDEFAULT:
     'muclumbus_api_jid',
     'muclumbus_api_pref',
     'providers_list_url',
+    'quick_reaction_emojis',
     'roster_theme',
     'search_engine',
     'show_main_window_on_startup',
@@ -216,6 +217,7 @@ class _ACCOUNTDEFAULT:
     'preview_verify_https': True,
     'providers_list_url': 
'https://data.xmpp.net/providers/v2/providers-B.json',
     'print_status_in_chats': False,
+    'quick_reaction_emojis': '👍,❤,🤣',
     'remote_control': False,
     'roster_theme': 'default',
     'search_engine': 'https://duckduckgo.com/?q=%s',
@@ -635,6 +637,8 @@ class WorkspaceSettings(TypedDict):
             'If enabled, Gajim offers to download plugins hosted on 
gajim.org'),
         'providers_list_url': _(
             'Endpoint for retrieving a list of providers for sign up'),
+        'quick_reaction_emojis': _(
+            'Comma-separated list of emojis for quick reaction buttons'),
         'search_engine': '',
         'send_on_ctrl_enter': _(
             'Send message on Ctrl+Enter and make a new line with Enter.'),


=====================================
gajim/gtk/conversation/rows/widgets.py
=====================================
@@ -61,7 +61,7 @@ def __init__(self) -> None:
 
         self._reaction_buttons: list[Gtk.Button | Gtk.MenuButton] = []
 
-        for emoji in ["👍", "❤", "🤣"]:
+        for emoji in app.settings.get("quick_reaction_emojis").split(","):
             button = QuickReactionButton(emoji)
             button.connect("clicked", self._on_quick_reaction_button_clicked)
             self._reaction_buttons.append(button)



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/38f989591ccdd74ae3912762e62d4810d1c1020a

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


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to