Changeset 3c54869 in mainline for uspace/app/taskbar/wndlist.c
- Timestamp:
- 2023-01-04T20:24:44Z (15 months ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5d86797
- Parents:
- cdd6fc9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/taskbar/wndlist.c
rcdd6fc9 r3c54869 1 1 /* 2 * Copyright (c) 202 2Jiri Svoboda2 * Copyright (c) 2023 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 157 157 if ((winfo->flags & (wndf_popup | wndf_system)) == 0) { 158 158 rc = wndlist_append(wndlist, wlist->windows[i], 159 winfo->caption, false);159 winfo->caption, winfo->nfocus != 0, false); 160 160 if (rc != EOK) { 161 161 wndmgt_free_window_info(winfo); … … 202 202 * @param wnd_id Window ID 203 203 * @param caption Entry caption 204 * @param active @c true iff window is active 204 205 * @param paint @c true to paint immediately 205 206 * @return @c EOK on success or an error code 206 207 */ 207 208 errno_t wndlist_append(wndlist_t *wndlist, sysarg_t wnd_id, 208 const char *caption, bool paint)209 const char *caption, bool active, bool paint) 209 210 { 210 211 wndlist_entry_t *entry = NULL; … … 230 231 231 232 entry->visible = false; 233 234 ui_pbutton_set_light(entry->button, active); 232 235 233 236 /* Set button callbacks */ … … 382 385 * @param wndlist Window list 383 386 * @param entry Window list entry 387 * @param active @c true iff the window is active 384 388 * @return @c EOK on success or an error code 385 389 */ 386 390 errno_t wndlist_update(wndlist_t *wndlist, wndlist_entry_t *entry, 387 const char *caption )391 const char *caption, bool active) 388 392 { 389 393 errno_t rc; … … 393 397 if (rc != EOK) 394 398 return rc; 399 400 ui_pbutton_set_light(entry->button, active); 395 401 396 402 rc = ui_pbutton_paint(entry->button); … … 507 513 508 514 if ((winfo->flags & (wndf_popup | wndf_system)) == 0) { 509 rc = wndlist_append(wndlist, wnd_id, winfo->caption, true); 515 rc = wndlist_append(wndlist, wnd_id, winfo->caption, 516 winfo->nfocus != 0, true); 510 517 if (rc != EOK) { 511 518 wndmgt_free_window_info(winfo); … … 558 565 return; 559 566 560 (void) wndlist_update(wndlist, entry, winfo->caption); 567 (void) wndlist_update(wndlist, entry, winfo->caption, 568 winfo->nfocus != 0); 561 569 wndmgt_free_window_info(winfo); 562 570 }
Note:
See TracChangeset
for help on using the changeset viewer.