Re: [gtk-list] Re: Itemfactory data



Stephen Witkop wrote:

> Marsel Osipov wrote:
> >
> > Stephen Witkop wrote:
> >
> > > I am in the process of converting over to the item_factory for my menus
> > > and I'm having a problem with passing data to my callbacks. From looking
> > > through the source, the only way I can see to do this is through the
> > > call to gtk_item_factory_create_items() but from what I can see, that
> > > would associate the same data with all the menus. It seems like I must
> > > be missing something simple here.
> > >
> >
> > You can call gtk_item_factory_create_item() and pass data through that. You
> > would have to call that for each item you want to create though...
> >
> That's what it looked like after checking out the source, it seems that
> there should be another field in the GtkItemFactoryEntry array to carry
> callback data.
>

Yes, I agree. It is kind of not logical to alow users to pass callback data to
items created manually, but not through GtkItemFactoryEntry....

Marsel



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