[gnome-tetravex/arnaudb/wip/gtk4: 31/42] Fix BottomButton image size.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tetravex/arnaudb/wip/gtk4: 31/42] Fix BottomButton image size.
- Date: Mon, 28 Sep 2020 13:21:15 +0000 (UTC)
commit b8e89edb24046ab38b35660820c688f8c92ea9ba
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 a261113..6df9e2c 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]