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


Commits:
0c5f5812 by Philipp Hörist at 2024-10-06T12:50:08+02:00
refactor: GajimAppWindow: Make callback private

- - - - -


1 changed file:

- gajim/gtk/widgets.py


Changes:

=====================================
gajim/gtk/widgets.py
=====================================
@@ -40,7 +40,7 @@ def __init__(
         self.__default_controller = Gtk.EventControllerKey(
             propagation_phase=Gtk.PropagationPhase.CAPTURE
         )
-        self.__default_controller.connect('key-pressed', self._on_key_pressed)
+        self.__default_controller.connect('key-pressed', self.__on_key_pressed)
         self.add_controller(self.__default_controller)
 
     def set_child(self, child: Gtk.Widget | None = None) -> None:
@@ -56,7 +56,7 @@ def set_child(self, child: Gtk.Widget | None = None) -> None:
     def get_default_controller(self) -> Gtk.EventController:
         return self.__default_controller
 
-    def _on_key_pressed(
+    def __on_key_pressed(
         self,
         _event_controller_key: Gtk.EventControllerKey,
         keyval: int,



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

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