[gnome-mahjongg/arnaudb/wip/gtk4: 20/24] Expand view.



commit c0f9a5f43093de0016bac0dde975ec184af34536
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Fri Mar 27 20:03:47 2020 +0100

    Expand view.

 src/gnome-mahjongg.vala | 2 ++
 src/score-dialog.vala   | 2 ++
 2 files changed, 4 insertions(+)
---
diff --git a/src/gnome-mahjongg.vala b/src/gnome-mahjongg.vala
index 87598c5..0c1e5ff 100644
--- a/src/gnome-mahjongg.vala
+++ b/src/gnome-mahjongg.vala
@@ -105,6 +105,8 @@ public class Mahjongg : Gtk.Application
         view_click_controller.pressed.connect (on_click);
         game_view.add_controller (view_click_controller);
         game_view.set_size_request (600, 400);
+        game_view.hexpand = true;
+        game_view.vexpand = true;
 
         title = new Gtk.Label ("");
         title.get_style_context ().add_class ("title");
diff --git a/src/score-dialog.vala b/src/score-dialog.vala
index c7d7583..d7852f4 100644
--- a/src/score-dialog.vala
+++ b/src/score-dialog.vala
@@ -58,6 +58,8 @@ public class ScoreDialog : Gtk.Dialog
         var scroll = new Gtk.ScrolledWindow (null, null);
         scroll.shadow_type = Gtk.ShadowType.ETCHED_IN;
         scroll.set_policy (Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC);
+        scroll.hexpand = true;
+        scroll.vexpand = true;
         vbox.add (scroll);
 
         score_model = new Gtk.ListStore (3, typeof (string), typeof (string), typeof (int));


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