problems with Item Factory



I have the following Item Factory:

GtkItemFactoryEntry menu_items [] = {
	{ "/_File",         	NULL,         	NULL, 0,
"<Branch>" },
	{ "/File/_Save Scene",  "<control>S", 	scene_save, 0,
NULL },
	{ "/File/sep1",     	NULL,         	NULL, 0,
"<Separator>" },
	{ "/File/Quit",     	"<control>Q", 	gtk_main_quit, 0,
NULL },
};

and functions like this:

class Scene {
	public:
		friend void scene_save (Scene *nscene) {
nscene->Save (); }
};

void Scene::Save () {
// saving file....
}



I got an error :
ANSI C++ prohibits conversion from `(Scene *)' to
`(...)'

How can I use this friend function with Item Factory,
or How can I use Save method in Item Factory?
Thank you in advance for your help!


__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com



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