Daniel Brötzmann pushed to branch reactions at gajim / gajim
Commits:
21013f48 by wurstsalat at 2024-05-19T00:24:03+02:00
fix: Reactions: Fix GTK critical when toggling reaction from
MoreReactionsButton popover
- - - - -
1 changed file:
- gajim/gtk/conversation/reactions_bar.py
Changes:
=====================================
gajim/gtk/conversation/reactions_bar.py
=====================================
@@ -103,6 +103,9 @@ def update_from_reactions(self, reactions:
list[mod.Reaction]) -> None:
if isinstance(widget, AddReactionButton):
continue
+ if isinstance(widget, MoreReactionsButton):
+ widget.hide_popover()
+
widget.destroy()
self._reactions = reactions
@@ -190,6 +193,11 @@ def __init__(self) -> None:
self.show_all()
+ def hide_popover(self) -> None:
+ popover = self.get_popover()
+ if popover is not None:
+ popover.popdown()
+
def add_reaction(self, reaction_button: ReactionButton) -> None:
self._flow_box.add(reaction_button)
self._flow_box.show_all()
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/21013f4874c4e122a9b420a2e16378fb9e6f94e7
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/21013f4874c4e122a9b420a2e16378fb9e6f94e7
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]