From 498909704967f0339042ef50487f3046484e1fa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Fri, 31 Jan 2014 20:07:57 +0100 Subject: [PATCH] GetWindow function, argument not used The argument "panel" in the function GetWindow() is not used. This patch removes this argument to avoid compiler warnings. --- WPrefs.app/MouseSettings.c | 4 ++-- WPrefs.app/Themes.c | 2 +- WPrefs.app/WPrefs.c | 2 +- WPrefs.app/WPrefs.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/WPrefs.app/MouseSettings.c b/WPrefs.app/MouseSettings.c index 32886dbb..d345f740 100644 --- a/WPrefs.app/MouseSettings.c +++ b/WPrefs.app/MouseSettings.c @@ -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); diff --git a/WPrefs.app/Themes.c b/WPrefs.app/Themes.c index a8ce4d1d..66ba3113 100644 --- a/WPrefs.app/Themes.c +++ b/WPrefs.app/Themes.c @@ -80,7 +80,7 @@ static pid_t downloadFile(WMScreen * scr, _Panel * panel, const char *file) if (pid < 0) { werror("could not fork() process"); - WMRunAlertPanel(scr, GetWindow(panel), _("Error"), + WMRunAlertPanel(scr, GetWindow(), _("Error"), "Could not start download. fork() failed", _("OK"), NULL, NULL); return -1; } diff --git a/WPrefs.app/WPrefs.c b/WPrefs.app/WPrefs.c index d788e068..de59cdfa 100644 --- a/WPrefs.app/WPrefs.c +++ b/WPrefs.app/WPrefs.c @@ -610,7 +610,7 @@ void Initialize(WMScreen * scr) WMSetLabelText(WPrefs.statusL, ""); } -WMWindow *GetWindow(Panel * panel) +WMWindow *GetWindow(void) { return WPrefs.win; } diff --git a/WPrefs.app/WPrefs.h b/WPrefs.app/WPrefs.h index b72d1a70..4fbd8ee4 100644 --- a/WPrefs.app/WPrefs.h +++ b/WPrefs.app/WPrefs.h @@ -84,7 +84,7 @@ void SetButtonAlphaImage(WMScreen *scr, WMButton *bPtr, const char *file); void CreateImages(WMScreen *scr, RContext *rc, RImage *xis, const char *file, WMPixmap **icon_normal, WMPixmap **icon_greyed); -WMWindow *GetWindow(Panel *panel); +WMWindow *GetWindow(void); /* manipulate the dictionary for the WindowMaker domain */