mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-15 13:35:53 +01:00
GetWindow function, argument not used
The argument "panel" in the function GetWindow() is not used. This patch removes this argument to avoid compiler warnings.
This commit is contained in:
committed by
Carlos R. Mafra
parent
3919363aa3
commit
4989097049
@@ -117,7 +117,7 @@ static void speedChange(WMWidget * w, void *data)
|
||||
|
||||
tmp = WMGetTextFieldText(panel->acceT);
|
||||
if (sscanf(tmp, "%f", &accel) != 1 || accel < 0) {
|
||||
WMRunAlertPanel(WMWidgetScreen(panel->acceT), GetWindow(panel),
|
||||
WMRunAlertPanel(WMWidgetScreen(panel->acceT), GetWindow(),
|
||||
_("Error"),
|
||||
_("Invalid mouse acceleration value. Must be a positive real value."),
|
||||
_("OK"), NULL, NULL);
|
||||
@@ -137,7 +137,7 @@ static void speedChange(WMWidget * w, void *data)
|
||||
|
||||
tmp = WMGetTextFieldText(panel->threT);
|
||||
if (sscanf(tmp, "%i", &threshold) != 1 || threshold < 0 || threshold > panel->maxThreshold) {
|
||||
WMRunAlertPanel(WMWidgetScreen(panel->parent), GetWindow(panel), _("Error"),
|
||||
WMRunAlertPanel(WMWidgetScreen(panel->parent), GetWindow(), _("Error"),
|
||||
_
|
||||
("Invalid mouse acceleration threshold value. Must be the number of pixels to travel before accelerating."),
|
||||
_("OK"), NULL, NULL);
|
||||
|
||||
Reference in New Issue
Block a user