summaryrefslogtreecommitdiff
path: root/glib
diff options
context:
space:
mode:
authorSébastien Wilmet <swilmet@gnome.org>2014-04-21 14:50:53 +0200
committerSébastien Wilmet <swilmet@gnome.org>2014-05-09 18:47:42 +0200
commit430e6fd6ad4ecf68ca110e90a626a60fd5d4eca8 (patch)
treeadc63e7841699ebf8b260592589eb9eb230a9e4e /glib
parent7c205ae90d5ee1dc583b20548fcb65a231af48ff (diff)
doc: various improvements
- GSubprocessLauncher exists since 2.40, not 2.36 - more logical order for g_markup functions - fix short description of GMarkup - GMarkupParser: specify that some parameters are NULL-terminated. - g_string_new (NULL); is possible. - other trivial fixes. https://bugzilla.gnome.org/show_bug.cgi?id=728983
Diffstat (limited to 'glib')
-rw-r--r--glib/gmarkup.c3
-rw-r--r--glib/gmarkup.h3
-rw-r--r--glib/gstring.c3
3 files changed, 6 insertions, 3 deletions
diff --git a/glib/gmarkup.c b/glib/gmarkup.c
index 390a23bfc..9b60387cd 100644
--- a/glib/gmarkup.c
+++ b/glib/gmarkup.c
@@ -39,7 +39,8 @@
/**
* SECTION:markup
- * @Title: Simple XML Subset Parser * @Short_description: parses a subset of XML
+ * @Title: Simple XML Subset Parser
+ * @Short_description: parses a subset of XML
* @See_also: [XML Specification](http://www.w3.org/TR/REC-xml/)
*
* The "GMarkup" parser is intended to parse a simple markup format
diff --git a/glib/gmarkup.h b/glib/gmarkup.h
index 71ff6aa30..13b2343a7 100644
--- a/glib/gmarkup.h
+++ b/glib/gmarkup.h
@@ -116,7 +116,8 @@ typedef struct _GMarkupParser GMarkupParser;
/**
* GMarkupParser:
* @start_element: Callback to invoke when the opening tag of an element
- * is seen.
+ * is seen. The callback's @attribute_names and @attribute_values parameters
+ * are %NULL-terminated.
* @end_element: Callback to invoke when the closing tag of an element
* is seen. Note that this is also called for empty tags like
* `<empty/>`.
diff --git a/glib/gstring.c b/glib/gstring.c
index d9a5fdd43..f5890bf64 100644
--- a/glib/gstring.c
+++ b/glib/gstring.c
@@ -132,7 +132,8 @@ g_string_sized_new (gsize dfl_size)
/**
* g_string_new:
- * @init: the initial text to copy into the string
+ * @init: (allow-none): the initial text to copy into the string, or %NULL to
+ * start with an empty string.
*
* Creates a new #GString, initialized with the given string.
*