some more checkbox fixes
This commit is contained in:
parent
809b8ccc60
commit
446f41297d
2 changed files with 4 additions and 2 deletions
|
@ -38,6 +38,7 @@
|
||||||
typedef struct GEventGWinCheckbox_t {
|
typedef struct GEventGWinCheckbox_t {
|
||||||
GEventType type; // The type of this event (GEVENT_GWIN_CHECKBOX)
|
GEventType type; // The type of this event (GEVENT_GWIN_CHECKBOX)
|
||||||
GHandle checkbox; // The checkbox that has been depressed (actually triggered on release)
|
GHandle checkbox; // The checkbox that has been depressed (actually triggered on release)
|
||||||
|
bool_t state // Is the checkbox currently checked or unchecked?
|
||||||
} GEventGWinCheckbox;
|
} GEventGWinCheckbox;
|
||||||
|
|
||||||
typedef enum GCheckboxShape_e {
|
typedef enum GCheckboxShape_e {
|
||||||
|
|
|
@ -88,6 +88,7 @@ static void gwinCheckboxCallback(void *param, GEvent *pe) {
|
||||||
continue;
|
continue;
|
||||||
pbe->type = GEVENT_GWIN_CHECKBOX;
|
pbe->type = GEVENT_GWIN_CHECKBOX;
|
||||||
pbe->checkbox = gh;
|
pbe->checkbox = gh;
|
||||||
|
pbe->state = gbw->state;
|
||||||
geventSendEvent(psl);
|
geventSendEvent(psl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue