[gnome-music/wip/jfelder/gtk4-v3: 33/40] windowplacement: Use set_default_size instead of resize
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/gtk4-v3: 33/40] windowplacement: Use set_default_size instead of resize
- Date: Wed, 2 Feb 2022 23:39:59 +0000 (UTC)
commit f0be1e4333ac9705e54e43d1433f9cc753422c33
Author: Jean Felder <jfelder src gnome org>
Date: Wed Feb 2 23:26:17 2022 +0100
windowplacement: Use set_default_size instead of resize
gtk_window_resize does not exist in Gtk4.
gnomemusic/windowplacement.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnomemusic/windowplacement.py b/gnomemusic/windowplacement.py
index 9ead8149f..c70aaddc4 100644
--- a/gnomemusic/windowplacement.py
+++ b/gnomemusic/windowplacement.py
@@ -56,7 +56,7 @@ class WindowPlacement(GObject.GObject):
if (len(size_setting) == 2
and isinstance(size_setting[0], int)
and isinstance(size_setting[1], int)):
- self._window.resize(size_setting[0], size_setting[1])
+ self._window.set_default_size(size_setting[0], size_setting[1])
if self._settings.get_value('window-maximized'):
self._window.maximize()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]