Re: GtkBuilder partial tree construction



Murray Cumming wrote:
> By the way, if GtkBuilder can't be used for multiple top-level widgets,
> we should probably check that gtk_builder_add_from_*() are not called
> twice on the same instance.

> Or does "merge" mean something special in 
> "
> Parses a file containing a <link linkend="BUILDER-UI">GtkBuilder UI
> definition</link> and merges it with the current contents of @builder.
> "
> ?

Yes, you're able to create xml definitions which refers to object created by
previous calls to gtk_builder_add_*.

It's not yet supporting XUL-style overlays[1] (like GtkUIManager merges for
widgets), but we might support it in the future.

> And this would make it even more useful to have *_new_from_file() and
> *_new_from_string().

See http://bugzilla.gnome.org/show_bug.cgi?id=447969 for a simplified API.

[1]: http://developer.mozilla.org/en/docs/XUL_Overlays

-- 
Johan Dahlin <jdahlin async com br>
Async Open Source



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