[Glade-users] Large Glade XML vs Multiple Small Glade XML



2008/10/26 James <proglottis at nothing.co.nz>

Hey,
So I've been looking around a few of the projects that use Glade3 and
have been developing a few small projects myself.

I'm wondering, is it best to have a single large all encompassing glade
file or many small glade files, say one per dialog. I guess ultimately
I'm interested in finding out what best practices are for using Glade3
especially for multiple dialogs.

Currently I'm wrapping each dialog in its own class and using XML
builder to load the dialog in that class. Such that every dialog class
creates a new instance of XML builder and loads what it needs from a
single large XML file. This is obviously going to be less efficient if
the XML files aren't cached.

I hope no-one has asked this before. I had a quick search of the
mailing-list archives, but couldn't find anything.

Cheers,
James

_______________________________________________
Glade-users maillist  -  Glade-users at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-users


Hi James,
               I think it is a good idea to use multiple files; however, I
feel 1 per widget may incur too many
open--file instructions if one were to navigate quickly between the
different widgets. Thus, it may mean we gain little
by such an approach. I reckon if we uselimited number of widgets per file
and limited size for each file, we may get
a better result. I shall try this idea as well and come back with my
findings on "single large file vs. multiple small files".

B
-- 
BalaKrishna Kolluru
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20081026/77344203/attachment.html 




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