diff options
| author | Federico Angelilli <code@fedang.net> | 2023-12-11 17:22:25 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2023-12-11 17:22:25 +0100 |
| commit | c13a74d93c62e8e867afcbed487bcbc7955b29e7 (patch) | |
| tree | 9e18aa3f7d397612f1a7dbd4efcc0d2c9bda5086 /src/comet.c | |
| parent | ffdfcf5d8ad1265e6beeea5780bda895221cd506 (diff) | |
Fix drawing
Diffstat (limited to 'src/comet.c')
| -rw-r--r-- | src/comet.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/comet.c b/src/comet.c index ec7295b..b6b36c5 100644 --- a/src/comet.c +++ b/src/comet.c @@ -205,8 +205,7 @@ static void menu_action(Button *btn) State *state; } *menu_ctx = sbtn->action_data; - // Otherwise the menu can't be closed - g_assert(menu_ctx->group->children->data == btn); + // NOTE: To close the menu the toggle button must be inside GList *temp = menu_ctx->group->children; menu_ctx->group->children = menu_ctx->toggled; @@ -329,7 +328,7 @@ int main(int argc, char **argv) // Menu button(s) Color grey = { 0.5, 0.5, 0.5, 1 }; - Button *group = button_group_create(PANGO_ALIGN_CENTER, grey, line_color); + Button *group = button_group_create(PANGO_ALIGN_LEFT, grey, line_color); Button *child1 = button_simple_create(PANGO_ALIGN_CENTER, color, line_color); button_set_padding(child1, 1); |
