Re: about callback for GtkItemfactory



If you are "manually" connecting the signal with
gtk_signal_connect() you use the signal
prototype, i.e.  void handler(GtkWidget *widget,gpointer callback_data);

If you use the ItemFactory facility for attaching  callbacks,
 then you use the ItemFactory prototype .

So, in  your case, you use the activate signal prototype because you
are doing the gtk_signal_connect() yourself.

HTH,
Donna

----- Original Message -----
From: Wan Hing Wah <50191914@ee.cityu.edu.hk>
To: <gtk-list@gnome.org>
Sent: Wednesday, July 05, 2000 10:16 AM
Subject: about callback for GtkItemfactory


> According to my computer book which teach gtk programming,
> the callback for items in GtkItemFactory is
> void handler (gpointer callback_data, guint callback_action,GtkWidget
*widget)
>
> however,the callback for "activate" signal for gtk_menu_item is
> void handler(GtkWidget *widget,gpointer callback_data);
>
> so,when i retrieve a menu item by item=gtk_item_factory_get_widget()
> and then connect the call back by
gtk_signal_connect(item,"activate",handler,data);
> which function prototype of the handler should I use?
>
>
> _______________________________________________
> gtk-list mailing list
> gtk-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>





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