gnome-core compile error



gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I. -DGNOMELOCALEDIR=\""/usr/local/share/locale"\" -I/usr/local/include -I/usr/local/include -DNEED_GNOMESUPPORT_H -I/usr/local/lib/gnome-libs/include -I/usr/local/lib/glib/include -I/usr/X11R6/include -I/usr/local/lib

/glib/include -I/usr/local/include -I/usr/local/lib/glib/include
-I/usr/local/include -I/usr/local/lib/glib/include -I/usr/X11R6/include -I/usr/local/lib/glib/include -I/usr/local/include -g -O2 -c menu.c
menu.c: In function `add_to_panel':
menu.c:178: too many arguments to function `load_applet'

panel/menu.c:

173:static int
174:add_to_panel (char *applet, char *path, char *arg)
175:{
176:        load_applet(applet,path,arg,0,0,NULL,NULL,
177:                    PANEL_UNKNOWN_APPLET_POSITION,
178:                    current_panel,NULL);
179:        return TRUE;
180:}

panel/main.h:

28: void load_applet(char *id, char *path, char *params,
29:        int pos, PanelWidget *panel, char *cfgpath);

Yes, that looks like 10 arguments being passed into a 6 argument function,
and that's about as far as my C skills take me.  I have my suspicions about
what those arguments look like, but maybe when I wake up in the morning and
do a cvs checkout, a fix will magically find its way onto my machine.

Not that I'm complaining.  I'm still damned impressed by the fact that
people are actually using ORBit.  Maybe CORBA won't turn out to be a 
bloatware white elephant DCE-lookalike after all.  We can only hope.

Finally, and I'm just curious and ignorant here, why is add_to_panel
an int() if it's just a wrapper to a void() and it always returns TRUE?
Why not make it a void()?

--
Todd Graham Lewis                                     (800) 719-4664, x2804
******Linux******         MindSpring Enterprises      tlewis@mindspring.net



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]