[gnome-mahjongg/arnaudb/wip/gtk4: 26/30] Expand view.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-mahjongg/arnaudb/wip/gtk4: 26/30] Expand view.
- Date: Wed, 5 Aug 2020 18:52:40 +0000 (UTC)
commit 96b65c6e80d218bfe2169b15f041ef5a2fff4e82
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 c91cd43..0663e98 100644
--- a/src/gnome-mahjongg.vala
+++ b/src/gnome-mahjongg.vala
@@ -104,6 +104,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 26e7dd2..f4bc5f9 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.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]