Changeset c88d7f99 in mainline for uspace/app/uidemo/uidemo.c
- Timestamp:
- 2022-03-10T17:44:35Z (3 years ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c38ab6c
- Parents:
- 96c6a00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/uidemo/uidemo.c
r96c6a00 rc88d7f99 1 1 /* 2 * Copyright (c) 202 1Jiri Svoboda2 * Copyright (c) 2022 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 545 545 } 546 546 547 rc = ui_menu_entry_create(demo.mfile, " Message", "", &mmsg);547 rc = ui_menu_entry_create(demo.mfile, "~M~essage", "", &mmsg); 548 548 if (rc != EOK) { 549 549 printf("Error creating menu.\n"); … … 553 553 ui_menu_entry_set_cb(mmsg, uidemo_file_message, (void *) &demo); 554 554 555 rc = ui_menu_entry_create(demo.mfile, " Load", "", &mload);555 rc = ui_menu_entry_create(demo.mfile, "~L~oad", "", &mload); 556 556 if (rc != EOK) { 557 557 printf("Error creating menu.\n"); … … 561 561 ui_menu_entry_set_cb(mload, uidemo_file_load, (void *) &demo); 562 562 563 rc = ui_menu_entry_create(demo.mfile, " Foo", "Ctrl-Alt-Del", &mfoo);564 if (rc != EOK) { 565 printf("Error creating menu.\n"); 566 return rc; 567 } 568 569 rc = ui_menu_entry_create(demo.mfile, " Bar", "", &mbar);570 if (rc != EOK) { 571 printf("Error creating menu.\n"); 572 return rc; 573 } 574 575 rc = ui_menu_entry_create(demo.mfile, "F oobar", "", &mfoobar);563 rc = ui_menu_entry_create(demo.mfile, "~F~oo", "Ctrl-Alt-Del", &mfoo); 564 if (rc != EOK) { 565 printf("Error creating menu.\n"); 566 return rc; 567 } 568 569 rc = ui_menu_entry_create(demo.mfile, "~B~ar", "", &mbar); 570 if (rc != EOK) { 571 printf("Error creating menu.\n"); 572 return rc; 573 } 574 575 rc = ui_menu_entry_create(demo.mfile, "F~o~obar", "", &mfoobar); 576 576 if (rc != EOK) { 577 577 printf("Error creating menu.\n"); … … 585 585 } 586 586 587 rc = ui_menu_entry_create(demo.mfile, "E xit", "Alt-F4", &mexit);587 rc = ui_menu_entry_create(demo.mfile, "E~x~it", "Alt-F4", &mexit); 588 588 if (rc != EOK) { 589 589 printf("Error creating menu.\n"); … … 599 599 } 600 600 601 rc = ui_menu_entry_create(demo.medit, " Modify", "", &mmodify);601 rc = ui_menu_entry_create(demo.medit, "~M~odify", "", &mmodify); 602 602 if (rc != EOK) { 603 603 printf("Error creating menu.\n"); … … 619 619 } 620 620 621 rc = ui_menu_entry_create(demo.mhelp, " About", "Ctrl-H, F1", &mabout);621 rc = ui_menu_entry_create(demo.mhelp, "~A~bout", "Ctrl-H, F1", &mabout); 622 622 if (rc != EOK) { 623 623 printf("Error creating menu.\n");
Note:
See TracChangeset
for help on using the changeset viewer.