aboutsummaryrefslogtreecommitdiff
path: root/src/saffron_widget.c
diff options
context:
space:
mode:
authorArslaan Pathan <[email protected]>2026-04-22 21:06:58 +1200
committerArslaan Pathan <[email protected]>2026-04-22 21:06:58 +1200
commit289ca3be66a5731fdcd8e2901514ddbb113c5076 (patch)
tree6ec66f374e042a57bcfaa288d0aa444517488d45 /src/saffron_widget.c
parent76516edf2c8c6ba36c0abb48871b5e69e9930dd2 (diff)
downloadsaffron-289ca3be66a5731fdcd8e2901514ddbb113c5076.tar.xz
saffron-289ca3be66a5731fdcd8e2901514ddbb113c5076.zip
Make the layout work roughly, make boxes have a size, update test code to work with boxes
Diffstat (limited to 'src/saffron_widget.c')
-rw-r--r--src/saffron_widget.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/saffron_widget.c b/src/saffron_widget.c
index 8612557..779253b 100644
--- a/src/saffron_widget.c
+++ b/src/saffron_widget.c
@@ -20,6 +20,8 @@ void saffron_widget_init(SaffronWidget* widget) {
widget->width_mode = SAFFRON_SIZE_FIXED;
widget->height_mode = SAFFRON_SIZE_FIXED;
widget->pixel_perfect = false;
+
+ widget->type = SAFFRON_WIDGET_UNKNOWN;
}
SaffronWidget* saffron_widget_new(void) {