[Glade-users] [glade-users] Using a global variable for GladeXML object?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 2007-01-19 at 00:33 -0800, Micah Carrick wrote:
When I create my applications using glade, I create and use the
gladeXML object in an initialize function and store all references
to widgets I will need later in a structure declared in main(). I
pass the necessary widgets to callbacks, and then I call
g_object_unref() on the gladeXML object and return. I do this
mainly because I try to avoid global variables because that's what
I learn
Just curious, can you point me to the code that does this..what
happens when the number of widgets becomes large

regards
Sudharshan S
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFsY+uSsRjJNRMc4kRAkl+AJ9lcTmHmn1FA0dqSKa2IwLA35oL7gCfZF9S
oItafKOrKtgGK4Cc53oWH2k=
=qGYp
-----END PGP SIGNATURE-----





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