Re: [INIMSS] How to use "gpointer user_data" in the signals?



On Mon, Feb 18, 2002 at 11:16:09PM +0530, Dino Cherian K wrote:
Hi

Anybody please help.

How can i use "gpointer user_data" that is got by the signal handlers?. Where 
can I set the data?

I was looking for some way to associate some data structure to a window or 
widget like the one done by gtk_clist_set_row_data and gtk_clist_set_row_data.

Thanks
Dino Cherian K
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
---end quoted text---

This pointer is set up when you connect the signal..
guint  gtk_signal_connect                 (GtkObject           *object,
                                           const gchar         *name,
                                           GtkSignalFunc        func,
                                           gpointer             func_data);

gpointer func_data is what you're looking for..

[]'s
-- 
Marcelo R Leitner <mrl netbank com br>
ICQ #: 29966851



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