accessing widget pointers

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

 



Hello,

I'm a GTK newbie, and I'm wondering what people normally do in their signal
callbacks to access the pointers to the widgets that they need. I have a
separate callbacks.c, and all of the GtkWidget pointers are file-scope
variables in main.c. Do you normally pass them in as additional data to the
signal handler? Make them global? 

I'm not using glade right now, so it's apis won't help, I'm just wondering
about best practices. 

Thanks,
Mike
-- 
Michael P. Soulier <msoulier@xxxxxxxxxxxxxxxx>
"Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction." --Albert Einstein

Attachment: signature.asc
Description: Digital signature

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux