[gnome-2048/arnaudb/wip/gtk4: 4/34] No more Geometry.



commit c0f7a17d0a44b4bbc499a82c9590822646b40bfb
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Tue Apr 28 07:15:48 2020 +0200

    No more Geometry.

 src/game-window.vala | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/src/game-window.vala b/src/game-window.vala
index 64a9b68..c2836b9 100644
--- a/src/game-window.vala
+++ b/src/game-window.vala
@@ -157,11 +157,7 @@ private class GameWindow : ApplicationWindow
     {
         _this.window_state_event.connect (state_event_cb);
         _this.size_allocate.connect (size_allocate_cb);
-
-        Gdk.Geometry geom = Gdk.Geometry ();
-        geom.min_height = WINDOW_MINIMUM_SIZE_HEIGHT;
-        geom.min_width = WINDOW_MINIMUM_SIZE_WIDTH;
-        _this.set_geometry_hints (_this, geom, Gdk.WindowHints.MIN_SIZE);
+        _this.set_size_request (WINDOW_MINIMUM_SIZE_HEIGHT, WINDOW_MINIMUM_SIZE_WIDTH);
     }
 
     private static void _load_window_state (GameWindow _this, ref GLib.Settings _settings)


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