How to pass data to GtkItemFactory callback?



Hi folks,

I'd like to pass some data to my callbacks, but can't seem to do so with gtk_item_factory(). Here's the basic gist:

   GtkItemFactoryEntry perl_file_select_menu[] = {
     { "/New", NULL, create_new_perl_fs, 0, NULL },
     { "/Open", NULL, create_open_perl_fs, 0, NULL },
     { "/Save", NULL, create_save_perl_fs, 0, NULL },
     { "/Save As", NULL, create_save_as_perl_fs, 0, NULL }
   };

but I'd like to be able to pass those functions a struct from w/i my program. Can't seem to make it work. Anyone have a suggestion? Should I go about making my "file select" window a different way?

Thanks,

DT

--
Technical Director - Virginia Center for Computer Music
http://www.virginia.edu/music/vccm.html






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