[gnome-mahjongg/arnaudb/wip/gtk4: 20/29] Expand view.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-mahjongg/arnaudb/wip/gtk4: 20/29] Expand view.
- Date: Fri, 9 Oct 2020 15:35:06 +0000 (UTC)
commit 02ede00eeac9b4083b13e0841b8ae8aeab61d16c
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 f767432..1889dbd 100644
--- a/src/gnome-mahjongg.vala
+++ b/src/gnome-mahjongg.vala
@@ -109,6 +109,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 19adb95..9c5e346 100644
--- a/src/score-dialog.vala
+++ b/src/score-dialog.vala
@@ -60,6 +60,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.append (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]