1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 04:48:06 +01:00

WPrefs: Removed unused screen argument in functions 'Init*'

The screen argument was not used in 'InitDoubleTest', 'InitEditMenuItem'
and 'InitEditMenu', so remove it to make the code simpler and avoid
compiler warning.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2013-11-01 16:06:59 +01:00
committed by Carlos R. Mafra
parent f5f367841b
commit def69435b1
2 changed files with 6 additions and 6 deletions

View File

@@ -33,7 +33,7 @@ static W_Class DoubleTestClass = 0;
* Initializer for our widget. Must be called before creating any * Initializer for our widget. Must be called before creating any
* instances of the widget. * instances of the widget.
*/ */
W_Class InitDoubleTest(WMScreen * scr) W_Class InitDoubleTest(void)
{ {
/* register our widget with WINGs and get our widget class ID */ /* register our widget with WINGs and get our widget class ID */
if (!DoubleTestClass) { if (!DoubleTestClass) {
@@ -51,7 +51,7 @@ DoubleTest *CreateDoubleTest(WMWidget * parent, const char *text)
DoubleTest *dPtr; DoubleTest *dPtr;
if (!DoubleTestClass) if (!DoubleTestClass)
InitDoubleTest(WMWidgetScreen(parent)); InitDoubleTest();
/* allocate some storage for our new widget instance */ /* allocate some storage for our new widget instance */
dPtr = wmalloc(sizeof(DoubleTest)); dPtr = wmalloc(sizeof(DoubleTest));

View File

@@ -105,7 +105,7 @@ static void handleItemClick(XEvent * event, void *data);
static W_Class EditMenuItemClass = 0; static W_Class EditMenuItemClass = 0;
W_Class InitEditMenuItem(WMScreen * scr) W_Class InitEditMenuItem(void)
{ {
/* register our widget with WINGs and get our widget class ID */ /* register our widget with WINGs and get our widget class ID */
if (!EditMenuItemClass) { if (!EditMenuItemClass) {
@@ -121,7 +121,7 @@ WEditMenuItem *WCreateEditMenuItem(WMWidget * parent, const char *title, Bool is
WMScreen *scr = WMWidgetScreen(parent); WMScreen *scr = WMWidgetScreen(parent);
if (!EditMenuItemClass) if (!EditMenuItemClass)
InitEditMenuItem(scr); InitEditMenuItem();
iPtr = wmalloc(sizeof(WEditMenuItem)); iPtr = wmalloc(sizeof(WEditMenuItem));
@@ -284,7 +284,7 @@ static void deselectItem(WEditMenu * menu);
static W_Class EditMenuClass = 0; static W_Class EditMenuClass = 0;
W_Class InitEditMenu(WMScreen * scr) W_Class InitEditMenu(void)
{ {
/* register our widget with WINGs and get our widget class ID */ /* register our widget with WINGs and get our widget class ID */
if (!EditMenuClass) { if (!EditMenuClass) {
@@ -371,7 +371,7 @@ static WEditMenu *makeEditMenu(WMScreen * scr, WMWidget * parent, const char *ti
WEditMenuItem *item; WEditMenuItem *item;
if (!EditMenuClass) if (!EditMenuClass)
InitEditMenu(scr); InitEditMenu();
mPtr = wmalloc(sizeof(WEditMenu)); mPtr = wmalloc(sizeof(WEditMenu));