Changeset 7cf5ddb in mainline for uspace/app/nav/panel.c
- Timestamp:
- 2023-03-08T18:21:22Z (21 months ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 42c2e65, 72ac106
- Parents:
- bea6233
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/nav/panel.c
rbea6233 r7cf5ddb 1 1 /* 2 * Copyright (c) 202 2Jiri Svoboda2 * Copyright (c) 2023 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 60 60 }; 61 61 62 static void panel_flist_activate_req(ui_file_list_t *, void *); 62 63 static void panel_flist_selected(ui_file_list_t *, void *, const char *); 63 64 64 65 /** Panel file list callbacks */ 65 66 static ui_file_list_cb_t panel_flist_cb = { 66 .selected = panel_flist_selected 67 .activate_req = panel_flist_activate_req, 68 .selected = panel_flist_selected, 67 69 }; 68 70 … … 216 218 gfx_coord2_t pos; 217 219 ui_control_t *ctl; 220 ui_evclaim_t claim; 218 221 219 222 pos.x = event->hpos; … … 222 225 return ui_unclaimed; 223 226 227 ctl = ui_file_list_ctl(panel->flist); 228 claim = ui_control_pos_event(ctl, event); 229 if (claim == ui_claimed) 230 return ui_claimed; 231 224 232 if (!panel->active && event->type == POS_PRESS) 225 233 panel_activate_req(panel); 226 234 227 ctl = ui_file_list_ctl(panel->flist); 228 return ui_control_pos_event(ctl, event); 235 return ui_claimed; 229 236 } 230 237 … … 416 423 } 417 424 425 /** File list in panel requests activation. 426 * 427 * @param flist File list 428 * @param arg Argument (panel_t *) 429 */ 430 static void panel_flist_activate_req(ui_file_list_t *flist, void *arg) 431 { 432 panel_t *panel = (panel_t *)arg; 433 434 panel_activate_req(panel); 435 } 436 418 437 /** File in panel file list was selected. 419 438 *
Note:
See TracChangeset
for help on using the changeset viewer.