diff options
author | Tristan Van Berkom <tristanvb@openismus.com> | 2013-03-20 16:33:52 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristanvb@openismus.com> | 2013-04-08 21:19:27 +0900 |
commit | b7da0d21f8ca2f9ec4eccf3a96c57327e0a5d601 (patch) | |
tree | 44238d9bbf5c01671314428cdcedee9c2a92bbab /gtk/gtkbuilder.h | |
parent | 82583640a275c7d95c185e4ad9eaa95bc37aba1f (diff) | |
download | gtk+-b7da0d21f8ca2f9ec4eccf3a96c57327e0a5d601.tar.gz |
GtkBuilder: Add private _gtk_builder_extend_with_template()
This adds the definition of the <template> tag with some documentation
on the variant of the format.
_gtk_builder_extend_with_template() is to be used while GtkContainer
builds from composite templates. A couple of error codes are also added
to handle a few new possible failure cases.
DTD Files gtkbuilder.rnc and gtkbuilder.rng have been updated to include
the new <template> tag and it's attributes.
Diffstat (limited to 'gtk/gtkbuilder.h')
-rw-r--r-- | gtk/gtkbuilder.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/gtkbuilder.h b/gtk/gtkbuilder.h index 5b22eb13cb..f002353d36 100644 --- a/gtk/gtkbuilder.h +++ b/gtk/gtkbuilder.h @@ -59,6 +59,9 @@ typedef struct _GtkBuilderPrivate GtkBuilderPrivate; * @GTK_BUILDER_ERROR_VERSION_MISMATCH: The input file requires a newer version * of GTK+. * @GTK_BUILDER_ERROR_DUPLICATE_ID: An object id occurred twice. + * @GTK_BUILDER_ERROR_OBJECT_TYPE_REFUSED: A specified object type is of the same type or + * derived from the type of the composite class being extended with builder XML. + * @GTK_BUILDER_ERROR_TEMPLATE_MISMATCH: The wrong type was specified in a composite class's template XML * * Error codes that identify various errors that can occur while using * #GtkBuilder. @@ -73,7 +76,9 @@ typedef enum GTK_BUILDER_ERROR_MISSING_PROPERTY_VALUE, GTK_BUILDER_ERROR_INVALID_VALUE, GTK_BUILDER_ERROR_VERSION_MISMATCH, - GTK_BUILDER_ERROR_DUPLICATE_ID + GTK_BUILDER_ERROR_DUPLICATE_ID, + GTK_BUILDER_ERROR_OBJECT_TYPE_REFUSED, + GTK_BUILDER_ERROR_TEMPLATE_MISMATCH } GtkBuilderError; GQuark gtk_builder_error_quark (void); |