Re: libglade vs glade for dialog generation



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

Tristan Van Berkom <tristan van berkom gmail com> writes:

- have lower application execution speed (dialog open delays)

Why would you create your dialog from the xml more than once in the 
application ?

I often load the Glade interface in an object init or realise method
(rooted at the child of the Glade main window), and store pointers to
the widgets of interest in the object structure.  In this case, the
Glade UI is loaded once per object instance, and unref'd in the
finalise method.  This has the benefits of having the UI constructed
automatically and having a "proper" GObject to manipulate as a
separate entity, with its own signals, properties and methods.  This
can make for nice, clean maintainable code--there might be a dozen
separate Glade files, but the UI is all custom types derived from Gtk
objects.


Regards,
Roger

- -- 
Roger Leigh
                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                Debian GNU/Linux        http://www.debian.org/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQFB8BVgVcFcaSW/uEgRAlrFAJ90HbqRATFH1ESXYP3XnYrnd5o5HACg3eSX
o91PCxtf+J+w8n4BFE2wY9w=
=WbQG
-----END PGP SIGNATURE-----



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