diff options
author | Tadej Borovšak <tadeboro@gmail.com> | 2010-04-18 16:13:11 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-04-28 18:41:34 +0200 |
commit | be3a1abc040ce55b3c1aed6a161c47bdf709ba79 (patch) | |
tree | 4bc03b7bd421e3074802f8d770b4e1e1c49a12da /gtk/gtkbuilder.h | |
parent | d6bc1a99dc8b027c0b22b4846809a1edfc45dcaf (diff) | |
download | gtk+-be3a1abc040ce55b3c1aed6a161c47bdf709ba79.tar.gz |
Move documentation to inline comments: GtkBuilder
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611742
Signed-off-by: Javier Jardón <jjardon@gnome.org>
Diffstat (limited to 'gtk/gtkbuilder.h')
-rw-r--r-- | gtk/gtkbuilder.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gtk/gtkbuilder.h b/gtk/gtkbuilder.h index 0f9224e0e7..8a2a8290a3 100644 --- a/gtk/gtkbuilder.h +++ b/gtk/gtkbuilder.h @@ -43,6 +43,29 @@ typedef struct _GtkBuilder GtkBuilder; typedef struct _GtkBuilderClass GtkBuilderClass; typedef struct _GtkBuilderPrivate GtkBuilderPrivate; +/** + * GtkBuilderError: + * @GTK_BUILDER_ERROR_INVALID_TYPE_FUNCTION: A type-func attribute didn't name + * a function that returns a #GType. + * @GTK_BUILDER_ERROR_UNHANDLED_TAG: The input contained a tag that #GtkBuilder + * can't handle. + * @GTK_BUILDER_ERROR_MISSING_ATTRIBUTE: An attribute that is required by + * #GtkBuilder was missing. + * @GTK_BUILDER_ERROR_INVALID_ATTRIBUTE: #GtkBuilder found an attribute that + * it doesn't understand. + * @GTK_BUILDER_ERROR_INVALID_TAG: #GtkBuilder found a tag that + * it doesn't understand. + * @GTK_BUILDER_ERROR_MISSING_PROPERTY_VALUE: A required property value was + * missing. + * @GTK_BUILDER_ERROR_INVALID_VALUE: #GtkBuilder couldn't parse + * some attribute value. + * @GTK_BUILDER_ERROR_VERSION_MISMATCH: The input file requires a newer version + * of GTK+. + * @GTK_BUILDER_ERROR_DUPLICATE_ID: An object id occurred twice. + * + * Error codes that identify various errors that can occur while using + * #GtkBuilder. + */ typedef enum { GTK_BUILDER_ERROR_INVALID_TYPE_FUNCTION, @@ -135,6 +158,14 @@ gboolean gtk_builder_value_from_string_type (GtkBuilder *builder, GValue *value, GError **error); +/** + * GTK_BUILDER_WARN_INVALID_CHILD_TYPE: + * @object: the #GtkBuildable on which the warning ocurred + * @type: the unexpected type value + * + * This macro should be used to emit a warning about and unexpected @type value + * in a #GtkBuildable add_child implementation. + */ #define GTK_BUILDER_WARN_INVALID_CHILD_TYPE(object, type) \ g_warning ("'%s' is not a valid child type of '%s'", type, g_type_name (G_OBJECT_TYPE (object))) |