1
0
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:
Rodolfo García Peñas (kix)
2014-01-31 20:07:57 +01:00
committed by Carlos R. Mafra
parent 3919363aa3
commit 4989097049
4 changed files with 5 additions and 5 deletions

View File

@@ -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);