[gnome-tetravex/arnaudb/wip/gtk4: 39/49] Fix BottomButton image size.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tetravex/arnaudb/wip/gtk4: 39/49] Fix BottomButton image size.
- Date: Wed, 2 Sep 2020 16:07:48 +0000 (UTC)
commit a78c193d666275a230bafaf6c5913e101de7f246
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 b3ca294..f7b7e0f 100644
--- a/src/gnome-tetravex.vala
+++ b/src/gnome-tetravex.vala
@@ -523,8 +523,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]