mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 12:58:08 +01:00
Removed unused WScreen argument in some Default handling functions
This commit is contained in:
committed by
Carlos R. Mafra
parent
f3e3ddf4f2
commit
5a16cb8e02
@@ -533,7 +533,7 @@ static void setIconCallback(WMenu *menu, WMenuEntry *entry)
|
|||||||
wMessageDialog(scr, _("Error"),
|
wMessageDialog(scr, _("Error"),
|
||||||
_("Could not open specified icon file"), _("OK"), NULL, NULL);
|
_("Could not open specified icon file"), _("OK"), NULL, NULL);
|
||||||
} else {
|
} else {
|
||||||
wDefaultChangeIcon(scr, icon->wm_instance, icon->wm_class, file);
|
wDefaultChangeIcon(icon->wm_instance, icon->wm_class, file);
|
||||||
wAppIconPaint(icon);
|
wAppIconPaint(icon);
|
||||||
}
|
}
|
||||||
if (file)
|
if (file)
|
||||||
|
|||||||
@@ -52,9 +52,9 @@ char *get_icon_filename(const char *winstance, const char *wclass, const char *c
|
|||||||
|
|
||||||
|
|
||||||
int wDefaultGetStartWorkspace(const char *instance, const char *class);
|
int wDefaultGetStartWorkspace(const char *instance, const char *class);
|
||||||
void wDefaultChangeIcon(WScreen *scr, const char *instance, const char* class, const char *file);
|
void wDefaultChangeIcon(const char *instance, const char* class, const char *file);
|
||||||
RImage *get_rimage_from_file(WScreen *scr, const char *file_name, int max_size);
|
RImage *get_rimage_from_file(WScreen *scr, const char *file_name, int max_size);
|
||||||
|
|
||||||
void wDefaultPurgeInfo(WScreen *scr, const char *instance, const char *class);
|
void wDefaultPurgeInfo(const char *instance, const char *class);
|
||||||
|
|
||||||
#endif /* WMDEFAULTS_H_ */
|
#endif /* WMDEFAULTS_H_ */
|
||||||
|
|||||||
@@ -4353,7 +4353,7 @@ static void drawerDestroy(WDock *drawer)
|
|||||||
/* Note regarding menus: we can't delete any dock/clip/drawer menu, because
|
/* Note regarding menus: we can't delete any dock/clip/drawer menu, because
|
||||||
* that would (attempt to) wfree some memory in gettext library (see menu
|
* that would (attempt to) wfree some memory in gettext library (see menu
|
||||||
* entries that have several "versions", such like "Hide" and "Unhide"). */
|
* entries that have several "versions", such like "Hide" and "Unhide"). */
|
||||||
wDefaultPurgeInfo(scr, drawer->icon_array[0]->wm_instance,
|
wDefaultPurgeInfo(drawer->icon_array[0]->wm_instance,
|
||||||
drawer->icon_array[0]->wm_class);
|
drawer->icon_array[0]->wm_class);
|
||||||
|
|
||||||
if (drawer->icon_count == 2) {
|
if (drawer->icon_count == 2) {
|
||||||
|
|||||||
@@ -184,7 +184,7 @@ static void panelBtnCallback(WMWidget * self, void *data)
|
|||||||
else
|
else
|
||||||
wAppIconPaint(aicon);
|
wAppIconPaint(aicon);
|
||||||
|
|
||||||
wDefaultChangeIcon(panel->wwin->screen_ptr, aicon->wm_instance, aicon->wm_class, text);
|
wDefaultChangeIcon(aicon->wm_instance, aicon->wm_class, text);
|
||||||
}
|
}
|
||||||
if (text)
|
if (text)
|
||||||
wfree(text);
|
wfree(text);
|
||||||
|
|||||||
@@ -529,7 +529,7 @@ char *wDefaultGetIconFile(const char *instance, const char *class, Bool default_
|
|||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wDefaultChangeIcon(WScreen *scr, const char *instance, const char *class, const char *file)
|
void wDefaultChangeIcon(const char *instance, const char *class, const char *file)
|
||||||
{
|
{
|
||||||
WDDomain *db = w_global.domain.window_attr;
|
WDDomain *db = w_global.domain.window_attr;
|
||||||
WMPropList *icon_value = NULL, *value, *attr, *key, *def_win, *def_icon = NULL;
|
WMPropList *icon_value = NULL, *value, *attr, *key, *def_win, *def_icon = NULL;
|
||||||
@@ -593,7 +593,7 @@ void wDefaultChangeIcon(WScreen *scr, const char *instance, const char *class, c
|
|||||||
WMPLSetCaseSensitive(False);
|
WMPLSetCaseSensitive(False);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wDefaultPurgeInfo(WScreen *scr, const char *instance, const char *class)
|
void wDefaultPurgeInfo(const char *instance, const char *class)
|
||||||
{
|
{
|
||||||
WMPropList *value, *key, *dict;
|
WMPropList *value, *key, *dict;
|
||||||
char *buffer;
|
char *buffer;
|
||||||
|
|||||||
Reference in New Issue
Block a user