Fix build in bare configurations
This commit is contained in:
parent
58eb7edfd5
commit
4b592ec295
14
nncmpp.c
14
nncmpp.c
|
@ -2860,8 +2860,11 @@ app_process_mouse (termo_mouse_event_t type, int x, int y, int button,
|
||||||
case WIDGET_LIST:
|
case WIDGET_LIST:
|
||||||
return app_process_action (ACTION_SCROLL_UP);
|
return app_process_action (ACTION_SCROLL_UP);
|
||||||
case WIDGET_VOLUME:
|
case WIDGET_VOLUME:
|
||||||
return app_process_action (g.pulse_control_requested
|
return app_process_action (
|
||||||
? ACTION_PULSE_VOLUME_UP : ACTION_MPD_VOLUME_UP);
|
#ifdef WITH_PULSE
|
||||||
|
g.pulse_control_requested ? ACTION_PULSE_VOLUME_UP :
|
||||||
|
#endif // WITH_PULSE
|
||||||
|
ACTION_MPD_VOLUME_UP);
|
||||||
case WIDGET_GAUGE:
|
case WIDGET_GAUGE:
|
||||||
return app_process_action (ACTION_MPD_FORWARD);
|
return app_process_action (ACTION_MPD_FORWARD);
|
||||||
}
|
}
|
||||||
|
@ -2872,8 +2875,11 @@ app_process_mouse (termo_mouse_event_t type, int x, int y, int button,
|
||||||
case WIDGET_LIST:
|
case WIDGET_LIST:
|
||||||
return app_process_action (ACTION_SCROLL_DOWN);
|
return app_process_action (ACTION_SCROLL_DOWN);
|
||||||
case WIDGET_VOLUME:
|
case WIDGET_VOLUME:
|
||||||
return app_process_action (g.pulse_control_requested
|
return app_process_action (
|
||||||
? ACTION_PULSE_VOLUME_DOWN : ACTION_MPD_VOLUME_DOWN);
|
#ifdef WITH_PULSE
|
||||||
|
g.pulse_control_requested ? ACTION_PULSE_VOLUME_DOWN :
|
||||||
|
#endif // WITH_PULSE
|
||||||
|
ACTION_MPD_VOLUME_DOWN);
|
||||||
case WIDGET_GAUGE:
|
case WIDGET_GAUGE:
|
||||||
return app_process_action (ACTION_MPD_BACKWARD);
|
return app_process_action (ACTION_MPD_BACKWARD);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue