summaryrefslogtreecommitdiff
path: root/gtk/gtkconstraintlayout.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2019-08-29 15:21:20 +0200
committerMatthias Clasen <mclasen@redhat.com>2019-09-10 12:08:20 -0400
commit96b37f4eb8ec0e7598534a83816be7c013fd1c9b (patch)
treedfb83ab6a57766627dc82cfc12b8eadef7bfaa5e /gtk/gtkconstraintlayout.c
parent135cea76fbe41cea7a83ebb3381bdc1410f8f9fb (diff)
downloadgtk+-96b37f4eb8ec0e7598534a83816be7c013fd1c9b.tar.gz
Use the new GtkBuildableParser type in GtkBuildable interfaces
Diffstat (limited to 'gtk/gtkconstraintlayout.c')
-rw-r--r--gtk/gtkconstraintlayout.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/gtk/gtkconstraintlayout.c b/gtk/gtkconstraintlayout.c
index f23237e0d8..497d748d72 100644
--- a/gtk/gtkconstraintlayout.c
+++ b/gtk/gtkconstraintlayout.c
@@ -1458,12 +1458,12 @@ guide_data_to_guide (const GuideData *data,
}
static void
-constraints_start_element (GMarkupParseContext *context,
- const char *element_name,
- const char **attr_names,
- const char **attr_values,
- gpointer user_data,
- GError **error)
+constraints_start_element (GtkBuildableParseContext *context,
+ const char *element_name,
+ const char **attr_names,
+ const char **attr_values,
+ gpointer user_data,
+ GError **error)
{
ConstraintsParserData *data = user_data;
@@ -1563,26 +1563,26 @@ constraints_start_element (GMarkupParseContext *context,
}
static void
-constraints_end_element (GMarkupParseContext *context,
- const char *element_name,
- gpointer user_data,
- GError **error)
+constraints_end_element (GtkBuildableParseContext *context,
+ const char *element_name,
+ gpointer user_data,
+ GError **error)
{
}
-static const GMarkupParser constraints_parser = {
+static const GtkBuildableParser constraints_parser = {
constraints_start_element,
constraints_end_element,
NULL,
};
static gboolean
-gtk_constraint_layout_custom_tag_start (GtkBuildable *buildable,
- GtkBuilder *builder,
- GObject *child,
- const char *element_name,
- GMarkupParser *parser,
- gpointer *parser_data)
+gtk_constraint_layout_custom_tag_start (GtkBuildable *buildable,
+ GtkBuilder *builder,
+ GObject *child,
+ const char *element_name,
+ GtkBuildableParser *parser,
+ gpointer *parser_data)
{
if (strcmp (element_name, "constraints") == 0)
{