[gnome-clocks] window: Don't call Gtk.Window.resize()



commit 5c7b7f7f6f23d09451887436208c6cae2892cd1a
Author: Yetizone <andreii lisita gmail com>
Date:   Fri Jan 15 00:08:10 2021 +0200

    window: Don't call Gtk.Window.resize()
    
    This function is no longer available in GTK4
    Instead use Gtk.Window.set_default_size()

 src/window.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/window.vala b/src/window.vala
index 78112f91..48239eed 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -116,7 +116,7 @@ public class Window : Adw.ApplicationWindow {
             int width, height;
             width = settings.get_int ("width");
             height = settings.get_int ("height");
-            resize (width, height);
+            set_default_size (width, height);
         }
         settings.bind ("maximized", this, "maximized", SettingsBindFlags.SET);
         settings.bind ("width", this, "default-width", SettingsBindFlags.SET);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]