mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-01 21:45:45 +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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -610,7 +610,7 @@ void Initialize(WMScreen * scr)
|
||||
WMSetLabelText(WPrefs.statusL, "");
|
||||
}
|
||||
|
||||
WMWindow *GetWindow(Panel * panel)
|
||||
WMWindow *GetWindow(void)
|
||||
{
|
||||
return WPrefs.win;
|
||||
}
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user