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

Re: itemfactory question



1)You want :
void        (*GtkItemFactoryCallback1)      (gpointer callback_data,
                                             guint callback_action,
                                             GtkWidget *widget);

2) The callback data is supplied in the gtk_item_factory_create_items()
function
(parameter # 4). However, this would pass the same data to all your
callbacks.
An alternative, if you have a lot of callbacks with differing data is to use
gtk_item_factory_create_item() for each. ( Or if it's not a big issue to
you,
you could certainly pass the data to all your callbacks...they don't have to
use it).

HTH,
Donna

----- Original Message -----
From: Poletti, Don <don.poletti@comverse-in.com>
To: <gtk-app-devel-list@redhat.com>
Sent: Thursday, February 24, 2000 7:11 AM
Subject: itemfactory question


> I am using the itemfactory to make menus and I am having to problems.
>
> 1) What is the prototype for the callback. The header file has three
> different
> ones and none seem to work. If its not obvious I'm refering to the third
> entry
> in itemFactoryEntry which is the what gets called when selected
>
> 2) The itemfactoryEntry does not seem to have any way to provide gpointer
> data.
> Is there a way?
>
>
> --
>          To unsubscribe: mail gtk-app-devel-list-request@redhat.com with
>                        "unsubscribe" as the Subject.
>
> Mailing list concerns should be mailed to <listmaster@redhat.com>
>
>



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