diff options
author | Paolo Borelli <pborelli@katamail.com> | 2008-07-16 15:36:53 +0000 |
---|---|---|
committer | Paolo Borelli <pborelli@src.gnome.org> | 2008-07-16 15:36:53 +0000 |
commit | 6ee8be8899f4717f3cacd34270d371c4300961b3 (patch) | |
tree | b1cd9f7754391518c8a97111e7dba8931f9e2868 /gtk/gtkbuilder.h | |
parent | 3e5cda3d3c59034d96498eff048fe16de964a29a (diff) | |
download | gtk+-6ee8be8899f4717f3cacd34270d371c4300961b3.tar.gz |
Bug 447998 - GtkBuilder does not support building parts of the xml tree
2008-07-15 Paolo Borelli <pborelli@katamail.com>
Bug 447998 - GtkBuilder does not support building parts of the xml tree
* gtk/gtkbuilder.c:
* gtk/gtkbuilder.h:
* gtk/gtkbuilderprivate.h:
* gtk/gtkbuilderparser.c:
* gtk/gtk.symbols:
Add two new functions that allow cherry picking and construct
objects from a ui description file or string.
* gtk/tests/builder.c: tests for the above.
svn path=/trunk/; revision=20845
Diffstat (limited to 'gtk/gtkbuilder.h')
-rw-r--r-- | gtk/gtkbuilder.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/gtkbuilder.h b/gtk/gtkbuilder.h index e6fe549c00..d33e32c306 100644 --- a/gtk/gtkbuilder.h +++ b/gtk/gtkbuilder.h @@ -100,6 +100,15 @@ guint gtk_builder_add_from_string (GtkBuilder *builder, const gchar *buffer, gsize length, GError **error); +guint gtk_builder_add_objects_from_file (GtkBuilder *builder, + const gchar *filename, + gchar **object_ids, + GError **error); +guint gtk_builder_add_objects_from_string (GtkBuilder *builder, + const gchar *buffer, + gsize length, + gchar **object_ids, + GError **error); GObject* gtk_builder_get_object (GtkBuilder *builder, const gchar *name); GSList* gtk_builder_get_objects (GtkBuilder *builder); |