Changeset b279899 in mainline for uspace/app
- Timestamp:
- 2023-10-17T12:18:10Z (2 years 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)
- Location:
- uspace/app/taskbar
- Files:
-
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/taskbar/meson.build
r4030072 rb279899 27 27 # 28 28 29 deps = [ ' startmenu', 'ui', 'wndmgt' ]29 deps = [ 'tbarcfg', 'ui', 'wndmgt' ] 30 30 src = files( 31 31 'clock.c', … … 49 49 50 50 if install_nonessential_data 51 installed_data += { 'name': ' startmenu.sif', 'dir': '/cfg' }51 installed_data += { 'name': 'taskbar.sif', 'dir': '/cfg' } 52 52 endif -
uspace/app/taskbar/taskbar.c
r4030072 rb279899 201 201 } 202 202 203 rc = tbsmenu_load(taskbar->tbsmenu, "/cfg/ startmenu.sif");203 rc = tbsmenu_load(taskbar->tbsmenu, "/cfg/taskbar.sif"); 204 204 if (rc != EOK) { 205 205 printf("Error loading start menu from '%s'.\n", 206 "/cfg/ startmenu.sif");206 "/cfg/taskbar.sif"); 207 207 goto error; 208 208 } -
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.