aboutsummaryrefslogtreecommitdiff
path: root/src/comet.c
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2024-03-16 00:13:47 +0100
committerFederico Angelilli <code@fedang.net>2024-03-16 00:13:47 +0100
commit121415c252310fe449ab24640f9312a7971305fb (patch)
tree987aaa89451453ed882405e543336f56aa2e37ee /src/comet.c
parent6dab75636d1c30a6b22141d12a01eb7c09c2183f (diff)
Rewrite layout calculation
Diffstat (limited to 'src/comet.c')
-rw-r--r--src/comet.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/comet.c b/src/comet.c
index 5bcd9ac..b47c078 100644
--- a/src/comet.c
+++ b/src/comet.c
@@ -286,6 +286,7 @@ int main(int argc, char **argv)
Color background_all = { 0.3, 0.3, 0.3, 1 };
Drawer *draw = draw_create("Hack 13 Bold", height, x_padding, x_padding, y_padding);
draw_set_background(draw, background_all);
+ draw_set_separator(draw, 10);
State *state = state_create(win, draw);
@@ -353,7 +354,8 @@ int main(int argc, char **argv)
State *state;
} menu_ctx = { (gpointer)group, {"", ""}, NULL, state };
- Button *menu = button_simple_create(PANGO_ALIGN_CENTER, color);
+ // XXX: If the alignment of the group and menu button are not equal something strange happens
+ Button *menu = button_simple_create(PANGO_ALIGN_LEFT, color);
button_simple_set_text(menu, g_strdup(menu_ctx.strings[0]), text_color);
button_simple_set_action(menu, menu_action, &menu_ctx);