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 32886db..d345f74 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 a8ce4d1..66ba311 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 d788e06..de59cdf 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 b72d1a7..4fbd8ee 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 */
 
-- 
1.8.5.2


-- 
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to