Daniel Brötzmann pushed to branch win-native-notifications at gajim / gajim


Commits:
cac62d7a by wurstsalat at 2024-05-26T18:34:13+02:00
cq: Notifications: Add comment on threading

- - - - -


1 changed file:

- gajim/gtk/notification.py


Changes:

=====================================
gajim/gtk/notification.py
=====================================
@@ -311,6 +311,8 @@ def _withdraw(self, details: list[Any]) -> None:
         self._toaster.clear_toasts()
 
     def _on_activated(self, event: ToastActivatedEventArgs) -> None:
+        # Calls need to be executed with GLib.idle_add to avoid threading 
issues,
+        # because Toasts run in a different thread.
         if event.arguments is None:
             GLib.idle_add(app.window.present_with_time, 
Gtk.get_current_event_time())
             return



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

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/cac62d7a7d3bd0b6eb4ffe8b8ef1f0523f4db8e5
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