Changeset f6b29929 in mainline


Ignore:
Timestamp:
2025-04-08T14:23:26Z (6 days ago)
Author:
Wayne Thornton <wmthornton-dev@…>
Children:
17964f6
Parents:
651dde7
Message:

Updated clock to open 'date_cfg' app when clicked

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/taskbar/clock.c

    r651dde7 rf6b29929  
    219219}
    220220
     221/** Launch date configuration application */
     222static errno_t taskbar_clock_launch_date_cfg(void)
     223{
     224        task_id_t id;
     225        const char *args[] = { "/app/date_cfg", NULL };
     226        return task_spawnv(&id, NULL, args[0], args);
     227}
     228
    221229/** Handle taskbar clock position event.
    222230 *
     
    233241        if (!gfx_pix_inside_rect(&pos, &clock->rect))
    234242                return ui_unclaimed;
     243
     244        if (event->type == POS_PRESS) {
     245                taskbar_clock_launch_date_cfg();
     246        }
    235247
    236248        return ui_claimed;
Note: See TracChangeset for help on using the changeset viewer.