Changeset bfee444 in mainline for uspace/app/taskbar/clock.c


Ignore:
Timestamp:
2025-04-15T22:42:24Z (15 hours ago)
Author:
GitHub <noreply@…>
Parents:
65bf084 (diff), f444633 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Wayne Thornton <wmthornton-dev@…> (2025-04-15 22:42:24)
git-committer:
GitHub <noreply@…> (2025-04-15 22:42:24)
Message:

Merge f444633cb532b1998590464404848c30ac6c6c32 into 65bf08437fcd848d357a9e3d4004b178ef9adafd

File:
1 edited

Legend:

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

    r65bf084 rbfee444  
    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.