Changeset a6492460 in mainline for uspace/app/taskbar/taskbar.c
- Timestamp:
- 2022-11-09T16:17:59Z (3 years ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 88d828e
- Parents:
- 54593f3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/taskbar/taskbar.c
r54593f3 ra6492460 34 34 35 35 #include <gfx/coord.h> 36 #include <io/pos_event.h> 36 37 #include <stdio.h> 37 38 #include <stdlib.h> … … 47 48 #include "wndlist.h" 48 49 49 static void wnd_close(ui_window_t *, void *); 50 static void taskbar_wnd_close(ui_window_t *, void *); 51 static void taskbar_wnd_pos(ui_window_t *, void *, pos_event_t *); 50 52 51 53 static ui_window_cb_t window_cb = { 52 .close = wnd_close 54 .close = taskbar_wnd_close, 55 .pos = taskbar_wnd_pos 53 56 }; 54 57 … … 58 61 * @param arg Argument (taskbar) 59 62 */ 60 static void wnd_close(ui_window_t *window, void *arg)63 static void taskbar_wnd_close(ui_window_t *window, void *arg) 61 64 { 62 65 taskbar_t *taskbar = (taskbar_t *) arg; 63 66 64 67 ui_quit(taskbar->ui); 68 } 69 70 /** Window received position event. 71 * 72 * @param window Window 73 * @param arg Argument (taskbar) 74 * @param event Position event 75 */ 76 static void taskbar_wnd_pos(ui_window_t *window, void *arg, pos_event_t *event) 77 { 78 taskbar_t *taskbar = (taskbar_t *) arg; 79 80 /* Remember ID of device that sent the last event */ 81 taskbar->wndlist->ev_pos_id = event->pos_id; 82 83 ui_window_def_pos(window, event); 65 84 } 66 85 … … 130 149 } 131 150 132 ui_window_set_cb(taskbar->window, &window_cb, (void *) &taskbar);151 ui_window_set_cb(taskbar->window, &window_cb, (void *)taskbar); 133 152 ui_res = ui_window_get_res(taskbar->window); 134 153
Note:
See TracChangeset
for help on using the changeset viewer.