diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-08-20 12:18:27 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-08-20 12:18:27 +1000 |
commit | ecaf8b83f8227724e9f862a0a8f64e6004a63d56 (patch) | |
tree | ed84213400a1f7e338e5bb79eb5fec11152e24d1 /demos/modules/gwin/container_nested | |
parent | 3b21507274aa4f98644382903ae529c1fc2c7bd4 (diff) | |
download | uGFX-ecaf8b83f8227724e9f862a0a8f64e6004a63d56.tar.gz uGFX-ecaf8b83f8227724e9f862a0a8f64e6004a63d56.tar.bz2 uGFX-ecaf8b83f8227724e9f862a0a8f64e6004a63d56.zip |
Create a generic GWIN event.
The frame now sends a GEVENT_GWIN_CLOSE event on closing.
Unfortunately some gwin events have had a field renamed in order to generalise the structure.
Demo's updated to match.
Diffstat (limited to 'demos/modules/gwin/container_nested')
-rw-r--r-- | demos/modules/gwin/container_nested/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/modules/gwin/container_nested/main.c b/demos/modules/gwin/container_nested/main.c index 94285afa..2d90f76b 100644 --- a/demos/modules/gwin/container_nested/main.c +++ b/demos/modules/gwin/container_nested/main.c @@ -141,13 +141,13 @@ int main(void) { switch(pe->type) { case GEVENT_GWIN_CHECKBOX: - if (((GEventGWinCheckbox*)pe)->checkbox == ghCheckbox1) { + if (((GEventGWinCheckbox*)pe)->gwin == ghCheckbox1) { gwinSetVisible(ghContainer2, gwinCheckboxIsChecked(ghCheckbox1)); } - else if (((GEventGWinCheckbox*)pe)->checkbox == ghCheckbox2) { + else if (((GEventGWinCheckbox*)pe)->gwin == ghCheckbox2) { gwinSetVisible(ghContainer3, gwinCheckboxIsChecked(ghCheckbox2)); } - else if (((GEventGWinCheckbox*)pe)->checkbox == ghCheckbox3) { + else if (((GEventGWinCheckbox*)pe)->gwin == ghCheckbox3) { gwinSetVisible(ghContainer1, gwinCheckboxIsChecked(ghCheckbox3)); } break; |