Implementing preview feature in glade

Marco Diego Aurélio Mesquita <[email protected]>
Newsgroups gmane.comp.gnome.glade.devel
Message-ID <[email protected]>
Hi,
I've been implementing a preview feature for glade but I would like
suggestions on the best way to do it.

As of now, the implementation is pretty hackish: it saves a
/tmp/out.glade file, loads it with gtkbuilder, get the window1 object
and shows it.

Of course, doing it this way will not work for projects that do not
have a widget named window1. And it is clear that this is not the best
strategy, so I have several questions on how to do it right.

I will investigate trough glade save functions to find a way to get
the string of the saved file so that it won't be needed to save the
file. But, how can I get the name of a toplevel object in glade?
Should we ask the user witch object to preview? Isn't it the best way
to do it? What better alternative to implement a preview feature in
glade?
_______________________________________________
Glade-devel maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/glade-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.