From d820fea7a4b53521aaade5e24b7338d569b21a09 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 1 Dec 2020 17:21:45 +0000 Subject: [PATCH] docs: Annotate GtkBuildableParser --- gtk/gtkbuildable.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gtk/gtkbuildable.h b/gtk/gtkbuildable.h index 84008c9ff5..058845caba 100644 --- a/gtk/gtkbuildable.h +++ b/gtk/gtkbuildable.h @@ -39,6 +39,15 @@ typedef struct _GtkBuildableIface GtkBuildableIface; typedef struct _GtkBuildableParseContext GtkBuildableParseContext; typedef struct _GtkBuildableParser GtkBuildableParser; +/** + * GtkBuildableParser: + * @start_element: function called for open elements + * @end_element: function called for close elements + * @text: function called for character data + * @error: function called on error + * + * A sub-parser for #GtkBuildable implementations. + */ struct _GtkBuildableParser { /* Called for open tags */ @@ -70,6 +79,7 @@ struct _GtkBuildableParser GError *error, gpointer user_data); + /*< private >*/ gpointer padding[4]; }; @@ -158,7 +168,7 @@ struct _GtkBuildableIface * @builder: a #GtkBuilder used to construct this object * @child: (nullable): child object or %NULL for non-child tags * @tagname: name of tag - * @parser: (out): a #GMarkupParser to fill in + * @parser: (out): a #GtkBuildableParser to fill in * @data: (out): return location for user data that will be passed in * to parser functions *