[gnome-2048/arnaudb/wip/gtk4: 5/36] No more Geometry.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-2048/arnaudb/wip/gtk4: 5/36] No more Geometry.
- Date: Tue, 14 Jul 2020 10:58:48 +0000 (UTC)
commit 8d4361acaf3c6df15bbb829e670146c5c0c0e219
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 016e147..71fd2de 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]