[gnome-music/wip/jfelder/gtk4-v3: 100/174] 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: 100/174] windowplacement: Use set_default_size instead of resize
- Date: Tue, 8 Feb 2022 11:31:56 +0000 (UTC)
commit 3e55bc6582205b8fe04448541d4ae4fc5312a32c
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]