Daniel Brötzmann pushed to branch reactions at gajim / gajim
Commits:
54eb9aa6 by wurstsalat at 2024-05-18T13:24:59+02:00
cfix: Reactions: Fix dummy entry behavior and styling
- - - - -
1 changed file:
- gajim/gtk/conversation/reactions_bar.py
Changes:
=====================================
gajim/gtk/conversation/reactions_bar.py
=====================================
@@ -200,7 +200,7 @@ def __init__(self) -> None:
no_show_all=True,
)
self._dummy_entry.get_style_context().add_class('flat')
- self._dummy_entry.get_style_context().add_class('reaction-dummy-entry')
+ self._dummy_entry.get_style_context().add_class('dummy-emoji-entry')
self._dummy_entry.connect('changed', self._on_changed)
box = Gtk.Box()
@@ -213,14 +213,15 @@ def __init__(self) -> None:
self.connect_after('clicked', self._on_clicked)
def _on_clicked(self, _button: Gtk.Button) -> None:
+ self._dummy_entry.set_text('')
self._dummy_entry.show()
self._dummy_entry.emit('insert-emoji')
def _on_changed(self, entry: Gtk.Entry) -> None:
- self._dummy_entry.hide()
+ entry.hide()
if not entry.get_text():
return
- emoji = self._dummy_entry.get_text()
+ emoji = entry.get_text()
entry.set_text('')
self.emit('emoji-added', emoji)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/54eb9aa650ab27331a1526cb9a8ac97563b00e84
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/54eb9aa650ab27331a1526cb9a8ac97563b00e84
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]