Changeset 39ab17c 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:
- e0377075
- Parents:
- c632c96
- git-author:
- Jiri Svoboda <jiri@…> (2021-10-21 17:44:55)
- git-committer:
- jxsvoboda <5887334+jxsvoboda@…> (2021-10-25 00:32:45)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/nav/nav.c
rc632c96 r39ab17c 63 63 }; 64 64 65 static void navigator_panel_activate_req(void *, panel_t *); 66 67 static panel_cb_t navigator_panel_cb = { 68 .activate_req = navigator_panel_activate_req 69 }; 70 65 71 /** Window close button was clicked. 66 72 * … … 183 189 panel_set_rect(navigator->panel[i], &rect); 184 190 191 panel_set_cb(navigator->panel[i], &navigator_panel_cb, 192 navigator); 193 185 194 rc = ui_fixed_add(navigator->fixed, 186 195 panel_ctl(navigator->panel[i])); … … 307 316 } 308 317 318 /** Panel callback requesting panel activation. 319 * 320 * @param arg Argument (navigator_t *) 321 * @param panel Panel 322 */ 323 void navigator_panel_activate_req(void *arg, panel_t *panel) 324 { 325 navigator_t *navigator = (navigator_t *)arg; 326 327 if (!panel_is_active(panel)) 328 navigator_switch_panel(navigator); 329 } 330 309 331 /** @} 310 332 */
Note:
See TracChangeset
for help on using the changeset viewer.