[gnome-tetravex/arnaudb/wip/gtk4: 20/21] Fix BottomButton image size.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tetravex/arnaudb/wip/gtk4: 20/21] Fix BottomButton image size.
- Date: Fri, 27 Mar 2020 16:53:41 +0000 (UTC)
commit 704b235bd64b18dca7e5225e9755e4d20c57482c
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Thu Mar 5 16:52:26 2020 +0100
Fix BottomButton image size.
src/gnome-tetravex.vala | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/src/gnome-tetravex.vala b/src/gnome-tetravex.vala
index 0df5375..697e379 100644
--- a/src/gnome-tetravex.vala
+++ b/src/gnome-tetravex.vala
@@ -521,8 +521,14 @@ private class Tetravex : Gtk.Application
margin_end: 35,
icon_name: icon_name,
focus_on_click: false,
+ height_request: 60,
+ width_request: 60,
visible: true);
-// _image.margin = 10;
+
+ Widget? image = get_child ();
+ if (image == null || !((!) image is Image))
+ assert_not_reached ();
+ ((Image) (!) image).pixel_size = 30;
sizegroup.add_widget (this);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]