Changeset 08a79303 in mainline
- Timestamp:
- 2020-10-21T22:29:02Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 70814b8e
- Parents:
- 58a67050
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/uidemo/uidemo.c
r58a67050 r08a79303 85 85 ui_demo_t *demo = (ui_demo_t *) arg; 86 86 87 printf("Close event\n");88 87 demo->quit = true; 89 88 } … … 106 105 107 106 (void) demo; 108 printf("Keyboard event type=%d key=%d\n", event->type, event->key);109 107 } 110 108 … … 145 143 146 144 if (pbutton == demo->pb1) { 147 printf("Clicked 'Confirm' button\n");148 145 rc = ui_label_set_text(demo->label, "Confirmed"); 149 146 if (rc != EOK) … … 151 148 (void) ui_label_paint(demo->label); 152 149 } else { 153 printf("Clicked 'Cancel' button\n");154 150 rc = ui_label_set_text(demo->label, "Cancelled"); 155 151 if (rc != EOK) … … 168 164 ui_demo_t *demo = (ui_demo_t *) arg; 169 165 170 printf("Close window requested\n");171 166 demo->quit = true; 172 167 } … … 198 193 errno_t rc; 199 194 200 printf("Init display..\n");201 202 195 rc = display_open(display_svc, &display); 203 196 if (rc != EOK) { … … 238 231 } 239 232 240 printf("Create window decoration\n");241 233 rc = ui_wdecor_create(ui_res, "UI Demo", &demo.wdecor); 242 234 if (rc != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.