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


Commits:
96946847 by Philipp Hörist at 2024-10-03T00:23:56+02:00
refactor: Fix quit

- - - - -


2 changed files:

- gajim/gtk/dialogs.py
- gajim/gtk/main.py


Changes:

=====================================
gajim/gtk/dialogs.py
=====================================
@@ -169,7 +169,8 @@ def __init__(self,
                     Gtk.Button, self.get_widget_for_response(button.response))
                 widget.get_style_context().add_class(button.action.value)
 
-        self.format_secondary_markup(sec_text)
+        self.props.secondary_use_markup = True
+        self.props.secondary_text = sec_text
 
         self.connect('response', self._on_response)
 
@@ -193,9 +194,6 @@ def _on_response(self,
             button.callback(*button.args, **button.kwargs)
         self.destroy()
 
-    def show(self) -> None:
-        self.show_all()
-
 
 class ConfirmationCheckDialog(ConfirmationDialog):
     def __init__(self,


=====================================
gajim/gtk/main.py
=====================================
@@ -1412,7 +1412,7 @@ def _on_file_request(self, event: 
events.FileRequestReceivedEvent) -> None:
 
     def quit(self) -> None:
         save_main_window_position()
-        window_width, window_height = self.get_size()
+        window_width, window_height = self.get_width(), self.get_height()
         app.settings.set('mainwin_width', window_width)
         app.settings.set('mainwin_height', window_height)
         app.settings.save()



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

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