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

Sudharshan S sudharsh at gmail.com
Fri Jan 19 22:42:38 EST 2007


-----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-----



More information about the Glade-users mailing list