[gnome-tetravex/arnaudb/wip/gtk4: 26/32] Fix BottomButton image size.



commit 94e4a2dd81c8c8716202f104fcfb2c0b03895e07
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 d1a80f8..f6b76c5 100644
--- a/src/gnome-tetravex.vala
+++ b/src/gnome-tetravex.vala
@@ -522,8 +522,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]