I'm a hobbyist in C, and new to Gnome and GUI programming.
I wrote a small app to operate my ATAPI CDROM changer, and
now I'm trying to convert the app to a panel applet.
In the application version, this compiles without error:
But in the applet version, this call generates "passing arg 4
from incompatible pointer type":
"Slot select 4",
_("Slot 4"), cdchange,
Looking for inspiration, I went and looked at ALL the applet
code in CVS, but found that folks rarely use this call, preferring
to use the "stock callbacks". When this function is used, the
"data" is generally NULL.
Here's a snippet from the applet tutorial, about
void applet_widget_register_callback(AppletWidget *applet,
Inserts a menu item into the panel menu. name is used to identify
the menu item. It is also the path of the menu item, this way you
can specify which submenu the new item should go in. menutext is
simply the label of the item. func is a pointer to a void function
(it is called with two arguments: an AppletWidget* and a gpointer).
The gpointer that is passed to *func is specified in data.
I'm getting all fuzzy-headed thinking about this, and it's
probably something simple, but how do I change this to avoid
the compiler error?
Thanks in advance,