Re: How to pass data to GtkItemFactory callback function?



David J. Topper wrote:
> I'm using the simple method for the GtkItemFactory.  Namely:
> 
>   GtkItemFactoryEntry menu_items[] = {
>     { "/_File",         NULL,         NULL, 0, "<Branch>" },
>     { "/File/_Open",    "<control>O", open_file, 0, NULL },
> 
> and so on.  But I don't see how I can place a data pointer into this
> structure as I can with general gtk_signal_connect().  

Hi David, it's the last argument to gtk_item_factory_create_items().

John



========================================================== 

Madame de Pompadour 
Images of a Mistress 

16 October 2002 - 12 January 2003 

For information and tickets: 
http://www.nationalgallery.org.uk/exhibitions/pompadour/default.htm



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