[gnome-sudoku/arnaudb/wip/gtk4: 30/43] Fix board size.




commit 1254d7c9c17f27cec1c4707f78f80d74a22faa70
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Mon Apr 13 16:26:15 2020 +0200

    Fix board size.

 data/gnome-sudoku.ui  | 4 ++--
 src/gnome-sudoku.vala | 2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/data/gnome-sudoku.ui b/data/gnome-sudoku.ui
index 0d02630..ac79461 100644
--- a/data/gnome-sudoku.ui
+++ b/data/gnome-sudoku.ui
@@ -212,8 +212,8 @@
                     <child>
                       <object class="GtkBox" id="game_box">
                         <property name="spacing">25</property>
-                        <property name="halign">center</property>
-                        <property name="valign">center</property>
+                        <property name="halign">fill</property>
+                        <property name="valign">fill</property>
                         <child>
                           <object class="GtkBox"> <!-- controls_box -->
                             <property name="halign">end</property>
diff --git a/src/gnome-sudoku.vala b/src/gnome-sudoku.vala
index 7e1e087..534aa57 100644
--- a/src/gnome-sudoku.vala
+++ b/src/gnome-sudoku.vala
@@ -380,6 +380,8 @@ public class Sudoku : Gtk.Application
 
         view = new SudokuView (game);
         view.set_size_request (480, 480);
+        view.hexpand = true;
+        view.vexpand = true;
 
         view.show_possibilities = show_possibilities;
         if (current_game_mode == GameMode.CREATE)


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