Changeset 550ed86 in mainline for uspace/app/taskbar-cfg/smeedit.c


Ignore:
Timestamp:
2023-12-19T17:25:58Z (5 months ago)
Author:
Jiri Svoboda <jiri@…>
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)
Message:

Need to add new start menu entry to editor's list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/taskbar-cfg/smeedit.c

    rf87ff8e r550ed86  
    116116
    117117        ui_wnd_params_init(&params);
    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";
    120120        if (ui_is_textmode(ui)) {
    121121                params.rect.p0.x = 0;
     
    345345{
    346346        smeedit_t *smee;
     347        smenu_entry_t *entry;
     348        startmenu_entry_t *smentry;
    347349        const char *cmd;
    348350        const char *caption;
     
    358360                /* Create new entry */
    359361                rc = smenu_entry_create(smee->startmenu->tbarcfg->tbarcfg,
    360                     caption, cmd);
     362                    caption, cmd, &entry);
    361363                if (rc != EOK)
    362364                        return;
     365
     366                rc = startmenu_insert(smee->startmenu, entry, &smentry);
     367                if (rc != EOK)
     368                        return;
     369
     370                startmenu_repaint(smee->startmenu);
    363371        } else {
    364372                /* Edit existing entry */
    365 
    366 
    367373                rc = smenu_entry_set_cmd(smee->smentry->entry, cmd);
    368374                if (rc != EOK)
Note: See TracChangeset for help on using the changeset viewer.