Document gtk_builder_extend_wth_template

This commit is contained in:
Matthias Clasen 2015-11-08 18:40:35 -05:00
parent ed26f5d761
commit f0a74bc302
2 changed files with 15 additions and 1 deletions

View File

@ -628,6 +628,7 @@ gtk_builder_add_from_string
gtk_builder_add_objects_from_file gtk_builder_add_objects_from_file
gtk_builder_add_objects_from_string gtk_builder_add_objects_from_string
gtk_builder_add_objects_from_resource gtk_builder_add_objects_from_resource
gtk_builder_extend_with_template
gtk_builder_get_object gtk_builder_get_object
gtk_builder_get_objects gtk_builder_get_objects
gtk_builder_expose_object gtk_builder_expose_object

View File

@ -1110,10 +1110,23 @@ gtk_builder_add_objects_from_file (GtkBuilder *builder,
return 1; return 1;
} }
/* Main private entry point for building composite container
/**
* gtk_builder_extend_with_template:
* @builder: a #GtkBuilder
* @widget: the widget that is being extended
* @template_type: the type that the template is for
* @buffer: the string to parse
* @length: the length of @buffer (may be -1 if @buffer is nul-terminated)
* @error: (allow-none): return location for an error, or %NULL
*
* Main private entry point for building composite container
* components from template XML. * components from template XML.
*
* This is exported purely to let gtk-builder-tool validate * This is exported purely to let gtk-builder-tool validate
* templates, applications have no need to call this function. * templates, applications have no need to call this function.
*
* Returns: A positive value on success, 0 if an error occurred
*/ */
guint guint
gtk_builder_extend_with_template (GtkBuilder *builder, gtk_builder_extend_with_template (GtkBuilder *builder,