Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
bc0afe02 by wurstsalat at 2024-07-28T12:24:14+02:00
fix: MessageRowActions: Fix issue with row hover in conjunction with switching
chats
Fixes #11925
- - - - -
1 changed file:
- gajim/gtk/conversation/rows/widgets.py
Changes:
=====================================
gajim/gtk/conversation/rows/widgets.py
=====================================
@@ -210,8 +210,11 @@ def _on_hover(self, _eventbox: MessageRowActions, event:
Gdk.EventCrossing) -> b
if event.type == Gdk.EventType.ENTER_NOTIFY:
self._has_cursor = True
self._menu_button_clicked = False
- assert self._message_row is not None
-
self._message_row.get_style_context().add_class('conversation-row-hover')
+ if self._message_row is not None:
+ # message_row may be None if MessageRowActions are entered
without
+ # hovering a MessageRow before (e.g. by switching chats via
shortcut)
+
self._message_row.get_style_context().add_class('conversation-row-hover')
+ return True
if (
event.type == Gdk.EventType.LEAVE_NOTIFY
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/bc0afe023a13e79097895bdb4e30a7133129bbdc
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/bc0afe023a13e79097895bdb4e30a7133129bbdc
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]