Ignore:
File:
1 edited

Legend:

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

    r95fc538 r1172326  
    11/*
     2 * Copyright (c) 2025 Wayne Michael Thornton (WMT) <wmthornton-dev@outlook.com>
    23 * Copyright (c) 2022 Jiri Svoboda
    34 * All rights reserved.
     
    219220}
    220221
     222/** Launch date configuration application */
     223static errno_t taskbar_clock_launch_date_cfg(void)
     224{
     225        task_id_t id;
     226        const char *args[] = { "/app/date_cfg", NULL };
     227        return task_spawnv(&id, NULL, args[0], args);
     228}
     229
    221230/** Handle taskbar clock position event.
    222231 *
     
    233242        if (!gfx_pix_inside_rect(&pos, &clock->rect))
    234243                return ui_unclaimed;
     244
     245        if (event->type == POS_PRESS) {
     246                taskbar_clock_launch_date_cfg();
     247        }
    235248
    236249        return ui_claimed;
Note: See TracChangeset for help on using the changeset viewer.