1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-29 03:16:01 +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
* instances of the widget.
*/
W_Class InitDoubleTest(WMScreen * scr)
W_Class InitDoubleTest(void)
{
/* register our widget with WINGs and get our widget class ID */
if (!DoubleTestClass) {
@@ -51,7 +51,7 @@ DoubleTest *CreateDoubleTest(WMWidget * parent, const char *text)
DoubleTest *dPtr;
if (!DoubleTestClass)
InitDoubleTest(WMWidgetScreen(parent));
InitDoubleTest();
/* allocate some storage for our new widget instance */
dPtr = wmalloc(sizeof(DoubleTest));