diff options
Diffstat (limited to 'src/gui/group.c')
-rw-r--r-- | src/gui/group.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/group.c b/src/gui/group.c index 11a0583..af9abac 100644 --- a/src/gui/group.c +++ b/src/gui/group.c | |||
@@ -22,7 +22,7 @@ void group_click_handler(int x_pos, int y_pos, Component *parameterSelf) { | |||
22 | assert(parameterSelf != NULL); | 22 | assert(parameterSelf != NULL); |
23 | Group *self = (Group *) parameterSelf; | 23 | Group *self = (Group *) parameterSelf; |
24 | 24 | ||
25 | if (self->group_head != NULL && self->component.activated) { | 25 | if (self->group_head != NULL) { |
26 | GroupElement *p = self->group_head; | 26 | GroupElement *p = self->group_head; |
27 | while (p != NULL) { | 27 | while (p != NULL) { |
28 | p->sub_component->click_handler(x_pos, y_pos, p->sub_component); | 28 | p->sub_component->click_handler(x_pos, y_pos, p->sub_component); |
@@ -42,7 +42,6 @@ void group_init(Group *group, int width, int height, int x_pos, int y_pos, int m | |||
42 | group->component.height = height; | 42 | group->component.height = height; |
43 | group->component.x_pos = x_pos; | 43 | group->component.x_pos = x_pos; |
44 | group->component.y_pos = y_pos; | 44 | group->component.y_pos = y_pos; |
45 | group->component.activated = true; | ||
46 | group->component.print_method = group_print; | 45 | group->component.print_method = group_print; |
47 | group->component.click_handler = group_click_handler; | 46 | group->component.click_handler = group_click_handler; |
48 | group->margin = margin; | 47 | group->margin = margin; |