Changeset f59212cc in mainline for uspace/app/nav/nav.c
- Timestamp:
- 2021-10-25T00:32:45Z (3 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c632c96
- Parents:
- 5bbb4453
- git-author:
- Jiri Svoboda <jiri@…> (2021-10-19 20:54:17)
- git-committer:
- jxsvoboda <5887334+jxsvoboda@…> (2021-10-25 00:32:45)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/nav/nav.c
r5bbb4453 rf59212cc 55 55 }; 56 56 57 static void navigator_file_open(void *); 58 static void navigator_file_exit(void *); 59 60 static nav_menu_cb_t navigator_menu_cb = { 61 .file_open = navigator_file_open, 62 .file_exit = navigator_file_exit 63 }; 64 57 65 /** Window close button was clicked. 58 66 * … … 154 162 goto error; 155 163 164 nav_menu_set_cb(navigator->menu, &navigator_menu_cb, 165 (void *)navigator); 166 156 167 rc = ui_fixed_add(navigator->fixed, nav_menu_ctl(navigator->menu)); 157 168 if (rc != EOK) { … … 278 289 } 279 290 291 /** File / Open menu entry selected */ 292 static void navigator_file_open(void *arg) 293 { 294 navigator_t *navigator = (navigator_t *)arg; 295 panel_t *panel; 296 297 panel = navigator_get_active_panel(navigator); 298 panel_open(panel, panel->cursor); 299 } 300 301 /** File / Exit menu entry selected */ 302 static void navigator_file_exit(void *arg) 303 { 304 navigator_t *navigator = (navigator_t *)arg; 305 306 ui_quit(navigator->ui); 307 } 308 280 309 /** @} 281 310 */
Note:
See TracChangeset
for help on using the changeset viewer.