[gnome-mines/arnaudb/wip/gtk4: 11/40] The expand property is gone.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-mines/arnaudb/wip/gtk4: 11/40] The expand property is gone.
- Date: Mon, 14 Sep 2020 16:00:28 +0000 (UTC)
commit 9d27b7c8fd6d4056ce068fb24ad43299fe596b24
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Mon Apr 13 22:55:49 2020 +0200
The expand property is gone.
src/minefield-view.vala | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/minefield-view.vala b/src/minefield-view.vala
index 8952b71..0c23c68 100644
--- a/src/minefield-view.vala
+++ b/src/minefield-view.vala
@@ -156,7 +156,8 @@ public class MinefieldView : Gtk.Grid
column_homogeneous = true;
column_spacing = 0;
can_focus = true;
- expand = true;
+ hexpand = true;
+ vexpand = true;
get_style_context ().add_class ("minefield");
selected = new Position ();
@@ -321,7 +322,8 @@ public class MinefieldView : Gtk.Grid
public new void add (Gtk.Widget child, int i, int j)
{
attach (child, i-1, j-1, 1, 1);
- child.expand = true;
+ child.hexpand = true;
+ child.vexpand = true;
}
private void redraw_sector_cb (uint x, uint y)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]