Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
55eed202 by wurstsalat at 2021-12-12T20:28:42+01:00
Fix chat actions

- - - - -


4 changed files:

- gajim/gtk/controls/base.py
- gajim/gtk/controls/chat.py
- gajim/gtk/controls/groupchat.py
- gajim/gtk/main.py


Changes:

=====================================
gajim/gtk/controls/base.py
=====================================
@@ -506,7 +506,7 @@ def _sec_labels_received(self, event):
         self.xml.label_selector.set_no_show_all(False)
         self.xml.label_selector.show_all()
 
-    def delegate_action(self, action):
+    def delegate_action(self, action: str) -> int:
         if action == 'clear-chat':
             self.conversation_view.clear()
             self._scrolled_view.reset()


=====================================
gajim/gtk/controls/chat.py
=====================================
@@ -271,7 +271,7 @@ def remove_actions(self) -> None:
     def focus(self) -> None:
         self.msg_textview.grab_focus()
 
-    def delegate_action(self, action):
+    def delegate_action(self, action: str) -> int:
         res = super().delegate_action(action)
         if res == Gdk.EVENT_STOP:
             return res


=====================================
gajim/gtk/controls/groupchat.py
=====================================
@@ -1431,7 +1431,7 @@ def _on_message_textview_key_press_event(self, widget, 
event):
             self.last_key_tabs = False
         return None
 
-    def delegate_action(self, action):
+    def delegate_action(self, action: str) -> int:
         res = super().delegate_action(action)
         if res == Gdk.EVENT_STOP:
             return res


=====================================
gajim/gtk/main.py
=====================================
@@ -253,7 +253,7 @@ def _on_action(self,
 
         action_name = action.get_name()
 
-        res = control.delegate_action(action)
+        res = control.delegate_action(action_name)
         if res != Gdk.EVENT_PROPAGATE:
             return res
 



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

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/55eed20241965a14680da3696c048ffe527aabe9
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to