Changeset 550ed86 in mainline for uspace/app
- Timestamp:
- 2023-12-19T17:25:58Z (22 months ago)
- Branches:
- master, topic/simplify-dev-export
- Children:
- 7130754
- Parents:
- f87ff8e
- git-author:
- Jiri Svoboda <jiri@…> (2023-12-19 17:19:18)
- git-committer:
- Jiri Svoboda <jiri@…> (2023-12-19 17:25:58)
- Location:
- uspace/app/taskbar-cfg
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/taskbar-cfg/smeedit.c
rf87ff8e r550ed86 116 116 117 117 ui_wnd_params_init(¶ms); 118 params.caption = smentry != NULL ? "Edit Start Menu Entry" 119 :"Create Start Menu Entry";118 params.caption = smentry != NULL ? "Edit Start Menu Entry" : 119 "Create Start Menu Entry"; 120 120 if (ui_is_textmode(ui)) { 121 121 params.rect.p0.x = 0; … … 345 345 { 346 346 smeedit_t *smee; 347 smenu_entry_t *entry; 348 startmenu_entry_t *smentry; 347 349 const char *cmd; 348 350 const char *caption; … … 358 360 /* Create new entry */ 359 361 rc = smenu_entry_create(smee->startmenu->tbarcfg->tbarcfg, 360 caption, cmd );362 caption, cmd, &entry); 361 363 if (rc != EOK) 362 364 return; 365 366 rc = startmenu_insert(smee->startmenu, entry, &smentry); 367 if (rc != EOK) 368 return; 369 370 startmenu_repaint(smee->startmenu); 363 371 } else { 364 372 /* Edit existing entry */ 365 366 367 373 rc = smenu_entry_set_cmd(smee->smentry->entry, cmd); 368 374 if (rc != EOK) -
uspace/app/taskbar-cfg/startmenu.c
rf87ff8e r550ed86 429 429 } 430 430 431 /** Repaint start menu entry list. 432 * 433 * When editing an entry the entry's label might change. We need 434 * to update the list entry caption to reflect that. 435 * 436 * @param smenu Start menu 437 */ 438 void startmenu_repaint(startmenu_t *smenu) 439 { 440 (void) ui_control_paint(ui_list_ctl(smenu->entries_list)); 441 } 442 431 443 /** Entry in entry list is selected. 432 444 * -
uspace/app/taskbar-cfg/startmenu.h
rf87ff8e r550ed86 50 50 extern void startmenu_edit(startmenu_t *); 51 51 extern errno_t startmenu_entry_update(startmenu_entry_t *); 52 extern void startmenu_repaint(startmenu_t *); 52 53 53 54 #endif
Note:
See TracChangeset
for help on using the changeset viewer.