fix noop violations: implement get_shortcut_string, icon_select, icon_change_title
These were noops hiding calls to pure functions with no X11 deps: - get_shortcut_string: calls GetShortcutKey (fixes missing menu shortcuts) - icon_select: calls wIconSelect - icon_change_title: calls wIconChangeTitle
This commit is contained in:
parent
b9c37c6629
commit
9b148c63ce
|
|
@ -193,7 +193,7 @@ char *wl_noop_get_text_selection(WScreen *scr, unsigned long selection)
|
|||
{ (void)scr; (void)selection; return NULL; }
|
||||
|
||||
char *wl_noop_get_shortcut_string(WShortKey key)
|
||||
{ (void)key; return NULL; }
|
||||
{ return GetShortcutKey(key); }
|
||||
|
||||
void wl_noop_icon_update_pixmap(WIcon *icon) { (void)icon; }
|
||||
|
||||
|
|
@ -224,8 +224,8 @@ void wl_noop_appicon_bounce(WAppIcon *aicon, void *data)
|
|||
{ (void)aicon; (void)data; }
|
||||
|
||||
void wl_noop_manage_all_windows(WScreen *scr, int crash_recovery)
|
||||
{ (void)scr; (void)crash_recovery; }void wl_noop_icon_select(WIcon *icon) { (void)icon; }
|
||||
void wl_noop_icon_change_title(WIcon *icon, WWindow *wwin) { (void)icon; (void)wwin; }void wl_noop_do_kaboom(WScreen *scr, WNativeWindow win, int x, int y)
|
||||
{ (void)scr; (void)crash_recovery; }void wl_noop_icon_select(WIcon *icon) { wIconSelect(icon); }
|
||||
void wl_noop_icon_change_title(WIcon *icon, WWindow *wwin) { wIconChangeTitle(icon, wwin); }void wl_noop_do_kaboom(WScreen *scr, WNativeWindow win, int x, int y)
|
||||
{ (void)scr; (void)win; (void)x; (void)y; }void wl_noop_draw_bevel(WNativeWindow d, unsigned int width, unsigned int height,
|
||||
WTexSolid *texture, int relief)
|
||||
{ (void)d; (void)width; (void)height; (void)texture; (void)relief; }
|
||||
|
|
|
|||
Loading…
Reference in New Issue