Changeset b279899 in mainline for uspace/app/taskbar/tbsmenu.c
- Timestamp:
- 2023-10-17T12:18:10Z (21 months ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d4643db
- Parents:
- 4030072
- git-author:
- Jiri Svoboda <jiri@…> (2023-10-16 18:17:59)
- git-committer:
- Jiri Svoboda <jiri@…> (2023-10-17 12:18:10)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/taskbar/tbsmenu.c
r4030072 rb279899 34 34 35 35 #include <gfx/coord.h> 36 #include <startmenu/startmenu.h>37 36 #include <stdbool.h> 38 37 #include <stddef.h> … … 40 39 #include <str.h> 41 40 #include <task.h> 41 #include <tbarcfg/tbarcfg.h> 42 42 #include <ui/fixed.h> 43 43 #include <ui/menu.h> … … 127 127 { 128 128 tbsmenu_entry_t *tentry; 129 startmenu_t *smenu= NULL;130 s tartmenu_entry_t *sme;129 tbarcfg_t *tbcfg = NULL; 130 smenu_entry_t *sme; 131 131 const char *caption; 132 132 const char *cmd; 133 133 errno_t rc; 134 134 135 rc = startmenu_open(repopath, &smenu);136 if (rc != EOK) 137 goto error; 138 139 sme = startmenu_first(smenu);135 rc = tbarcfg_open(repopath, &tbcfg); 136 if (rc != EOK) 137 goto error; 138 139 sme = tbarcfg_smenu_first(tbcfg); 140 140 while (sme != NULL) { 141 caption = s tartmenu_entry_get_caption(sme);142 cmd = s tartmenu_entry_get_cmd(sme);141 caption = smenu_entry_get_caption(sme); 142 cmd = smenu_entry_get_cmd(sme); 143 143 144 144 rc = tbsmenu_add(tbsmenu, caption, cmd, &tentry); … … 148 148 (void)tentry; 149 149 150 sme = startmenu_next(sme);151 } 152 153 startmenu_close(smenu);150 sme = tbarcfg_smenu_next(sme); 151 } 152 153 tbarcfg_close(tbcfg); 154 154 return EOK; 155 155 error: 156 if ( smenu!= NULL)157 startmenu_close(smenu);156 if (tbcfg != NULL) 157 tbarcfg_close(tbcfg); 158 158 return rc; 159 159 }
Note:
See TracChangeset
for help on using the changeset viewer.