Simon McVittie [Tue, 11 Feb 2014 15:24:34 +0000 (15:24 +0000)]
g_test_run: return 0 if all tests are skipped in TAP mode
Exit status 77 is special to Automake's default test driver, but is
treated as an error by TAP.
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=724124
Reviewed-by: Dan Winship <danw>
Simon McVittie [Tue, 11 Feb 2014 15:14:33 +0000 (15:14 +0000)]
glib/tests/collate.c: run to completion when skipping all tests
Otherwise, we don't produce valid TAP output, and fail with:
ERROR: collate - missing test plan
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=724124
Reviewed-by: Dan Winship <danw>
Philip Withnall [Thu, 13 Feb 2014 10:58:21 +0000 (10:58 +0000)]
gsocketconnection: Document closing connections with g_io_stream_close()
It’s not enough to close a connection by calling g_input_stream_close()
and g_output_stream_close() on its two substreams: to close the
underlying socket, one must use g_io_stream_close(). Document that.
https://bugzilla.gnome.org/show_bug.cgi?id=724278
Dan Winship [Thu, 13 Feb 2014 13:30:24 +0000 (08:30 -0500)]
gsocketservice: Clarify g_socket_service_stop() documentation
https://bugzilla.gnome.org/show_bug.cgi?id=724233
Simon McVittie [Thu, 6 Feb 2014 17:48:44 +0000 (17:48 +0000)]
g_child_watch_source_new: POSIX pid must be positive
If we used a non-positive pid, we'd call waitpid(that_pid, ...)
which is exactly the situation this function can't deal with.
On Windows, GPid is a HANDLE (pointer), so I don't think the same thing
applies.
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=723743
Reviewed-by: Ryan Lortie
Simon McVittie [Thu, 6 Feb 2014 10:19:47 +0000 (10:19 +0000)]
Be more clear that g_return_if_fail is undefined behaviour
In particular, it is not incorrect to g_return_if_fail (..., FALSE)
in a function returning a "success" gboolean and a GError: "failure to
meet the preconditions is an error" takes precedence over the
GError documentation's guarantee that the error will be set on failure.
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=660809
Reviewed-by: Emmanuele Bassi
Emmanuele Bassi [Mon, 10 Feb 2014 15:48:17 +0000 (15:48 +0000)]
po/nb.po: Fix mismatched translation
Missing '\n' at the end of the string broke building under CI.
Kjartan Maraas [Mon, 10 Feb 2014 15:16:41 +0000 (16:16 +0100)]
Updated Norwegian bokmål translation
Andika Triwidada [Mon, 10 Feb 2014 14:55:59 +0000 (14:55 +0000)]
Updated Indonesian translation
Philip Withnall [Mon, 10 Feb 2014 08:49:52 +0000 (08:49 +0000)]
gsubprocess: Fix ‘Since’ lines in documentation to read 2.40
GSubprocess was introduced in GLib 2.40, not 2.36.
https://bugzilla.gnome.org/show_bug.cgi?id=724001
Philip Withnall [Mon, 10 Feb 2014 08:21:49 +0000 (08:21 +0000)]
gsubprocess: Fix a broken link in the documentation
https://bugzilla.gnome.org/show_bug.cgi?id=724001
Kjartan Maraas [Mon, 10 Feb 2014 07:15:00 +0000 (08:15 +0100)]
Updated Norwegian bokmål translation
Milo Casagrande [Sun, 9 Feb 2014 11:21:34 +0000 (12:21 +0100)]
[l10n] Updated Italian translation.
Matthias Clasen [Sun, 9 Feb 2014 07:12:53 +0000 (02:12 -0500)]
Fix a misformatting in GVariant docs
The + at the beginning of the line was misinterpreted
as markdown for a list.
Matthias Clasen [Sun, 9 Feb 2014 07:07:26 +0000 (02:07 -0500)]
Docs: Drop entities, switch away from sgml mode
Since all element markup is now gone from the doc comments,
we can turn off the gtk-doc sgml mode, which means that from
now on, docbook markup is no longer allowed in doc comments.
To make this possible, we have to replace all remaining
entities in doc comments by their replacement text, & -> &
and so on.
Matthias Clasen [Sat, 8 Feb 2014 22:52:21 +0000 (17:52 -0500)]
Convert remaining examples to links
Matthias Clasen [Sat, 8 Feb 2014 20:59:24 +0000 (15:59 -0500)]
REmove another table
Matthias Clasen [Sat, 8 Feb 2014 20:50:17 +0000 (15:50 -0500)]
Remove some informalexamples
Matthias Clasen [Sat, 8 Feb 2014 20:34:04 +0000 (15:34 -0500)]
Another stray <programlisting>
Matthias Clasen [Sat, 8 Feb 2014 20:28:34 +0000 (15:28 -0500)]
Another stray litreal
Matthias Clasen [Sat, 8 Feb 2014 20:19:13 +0000 (15:19 -0500)]
Strip out a remaining programlisting
Matthias Clasen [Sat, 8 Feb 2014 20:18:37 +0000 (15:18 -0500)]
Convert another table to a list
Matthias Clasen [Sat, 8 Feb 2014 20:18:06 +0000 (15:18 -0500)]
Convert more xincluded examples to external links
Matthias Clasen [Sat, 8 Feb 2014 18:55:27 +0000 (13:55 -0500)]
Docs: Remove an example tag that has snuck back in
Matthias Clasen [Sat, 8 Feb 2014 18:47:02 +0000 (13:47 -0500)]
Docs: convert another table to a list
Matthias Clasen [Sat, 8 Feb 2014 18:43:16 +0000 (13:43 -0500)]
Convert GVariantType table to a list
Matthias Clasen [Sat, 8 Feb 2014 18:28:11 +0000 (13:28 -0500)]
Remove a new literal tag that has crept in
Matthias Clasen [Sat, 8 Feb 2014 18:25:04 +0000 (13:25 -0500)]
Remove a few leftover <simplelist>s
Matthias Clasen [Sat, 8 Feb 2014 18:22:58 +0000 (13:22 -0500)]
Remove a stray <em> tag
Matthias Clasen [Sat, 8 Feb 2014 18:22:38 +0000 (13:22 -0500)]
Remove tables from GFileAttribute docs
Matthias Clasen [Sat, 8 Feb 2014 17:26:56 +0000 (12:26 -0500)]
Eradicate links and xrefs
These are all replaced by markdown ref links.
Daniel Mustieles [Fri, 7 Feb 2014 13:47:16 +0000 (14:47 +0100)]
Updated Spanish translation
Fran Diéguez [Fri, 7 Feb 2014 00:27:18 +0000 (01:27 +0100)]
Updated Galician translations
Matthias Clasen [Thu, 6 Feb 2014 21:59:49 +0000 (16:59 -0500)]
Remove a few overlooked literals
Matthias Clasen [Thu, 6 Feb 2014 21:49:29 +0000 (16:49 -0500)]
Stop using replaceable tags
Matthias Clasen [Thu, 6 Feb 2014 21:48:49 +0000 (16:48 -0500)]
Stop using <para> for ids
Instead, use the id support in markdown headings.
Enrico Nicoletto [Thu, 6 Feb 2014 18:32:02 +0000 (18:32 +0000)]
Updated Brazilian Portuguese translation
Matthias Clasen [Thu, 6 Feb 2014 13:04:52 +0000 (08:04 -0500)]
Docs: replace <literal> by `
Matthias Clasen [Thu, 6 Feb 2014 03:57:27 +0000 (22:57 -0500)]
Docs: use quotes instead of firstterm
Matthias Clasen [Thu, 6 Feb 2014 03:49:54 +0000 (22:49 -0500)]
Docs: don't use option tags
Matthias Clasen [Thu, 6 Feb 2014 03:37:54 +0000 (22:37 -0500)]
Stop using starttag elements
Matthias Clasen [Thu, 6 Feb 2014 03:02:24 +0000 (22:02 -0500)]
Use markdown for images
Matthias Clasen [Thu, 6 Feb 2014 03:01:54 +0000 (22:01 -0500)]
Use a code block instead of <screen>
Ryan Lortie [Sun, 12 Jan 2014 23:14:30 +0000 (18:14 -0500)]
GApplication: parse command line options
Add support for parsing command line options with GApplication.
You can add GOptionGroup and GOptionEntry using two new APIs:
g_application_add_option_group() and
g_application_add_main_option_entries().
Also add a "handle-local-options" signal that allows handling of
commandline arguments in the local process without having to override
local_command_line.
As a special feature, you can have a %NULL @arg_data in a GOptionEntry
which will cause the argument to be stored in a GVariantDict. This
dictionary is available for inspection and modification by the
"handle-local-options" signal and can be forwarded to the primary
instance in cases of command line invocation (where it can be fetched
using g_application_command_line_get_options()).
https://bugzilla.gnome.org/show_bug.cgi?id=721977
Ryan Lortie [Wed, 5 Feb 2014 17:11:50 +0000 (17:11 +0000)]
GOption: fix bug in strv mode
We are a bit too aggressive about freeing memory in strv mode. Only
free it in the case that we actually set the pointer to NULL.
Uncovered by the GApplication tests.
Theppitak Karoonboonyanan [Thu, 6 Feb 2014 03:24:49 +0000 (10:24 +0700)]
Updated Thai translation
Matthias Clasen [Thu, 6 Feb 2014 02:23:28 +0000 (21:23 -0500)]
Convert external links to markdown syntax
Matthias Clasen [Thu, 6 Feb 2014 01:17:46 +0000 (20:17 -0500)]
Don't use <filename> in docs
Switch to simpler markdown, `foo`.
Matthias Clasen [Thu, 6 Feb 2014 00:32:41 +0000 (19:32 -0500)]
Don't use <envar> in docs
Switch to simpler markdown, `foo`.
Shankar Prasad [Wed, 5 Feb 2014 09:49:25 +0000 (15:19 +0530)]
updated kn.po
Philip Withnall [Thu, 21 Nov 2013 17:39:16 +0000 (17:39 +0000)]
gvariant: Document the need to cast varargs when constructing GVariants
Slightly expand on the documentation about casting varargs when
constructing GVariants, and link to it from all the functions where it’s
a necessary consideration.
Add an example of passing flags to a ‘t’ type variable (guint64).
Assuming the flags enum does not have many members, the flag variable
will be 32 bits wide, and needs an explicit cast to be passed into
g_variant_new() as a 64-bit value.
https://bugzilla.gnome.org/show_bug.cgi?id=712837
Ryan Lortie [Tue, 4 Feb 2014 14:22:55 +0000 (14:22 +0000)]
return_if_fail vs. return_val_if_fail fix
Ryan Lortie [Tue, 28 Jan 2014 10:55:44 +0000 (10:55 +0000)]
gobject: box GVariantDict
We will want to use this in GApplication for a signal and a property.
https://bugzilla.gnome.org/show_bug.cgi?id=625408
Ryan Lortie [Fri, 24 Jan 2014 14:42:13 +0000 (09:42 -0500)]
add GVariantDict
...the long-requested mutable dictionary helper for GVariant.
https://bugzilla.gnome.org/show_bug.cgi?id=625408
Matthias Clasen [Tue, 4 Feb 2014 00:34:15 +0000 (19:34 -0500)]
Bump version
Matthias Clasen [Tue, 4 Feb 2014 00:06:53 +0000 (19:06 -0500)]
2.39.4
Matthias Clasen [Mon, 3 Feb 2014 22:37:42 +0000 (17:37 -0500)]
Updates
Matthias Clasen [Mon, 3 Feb 2014 22:10:45 +0000 (17:10 -0500)]
Fix a typo
Philip Withnall [Fri, 31 Jan 2014 12:16:15 +0000 (12:16 +0000)]
gmain: Note that g_source_destroy() can be called multiple times
https://bugzilla.gnome.org/show_bug.cgi?id=723360
Chao-Hsiung Liao [Sun, 2 Feb 2014 12:09:16 +0000 (20:09 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)
Emmanuele Bassi [Sun, 2 Feb 2014 09:32:09 +0000 (09:32 +0000)]
tests: Remove a compiler warning
Emmanuele Bassi [Sun, 2 Feb 2014 09:30:30 +0000 (09:30 +0000)]
array: Remove a compiler warning
The GRealPtrArray variable is not necessary: we're accessing only public
fields of GPtrArray.
Emmanuele Bassi [Sun, 2 Feb 2014 09:28:31 +0000 (09:28 +0000)]
array: Fix compilation
Antoine Jacoutot [Tue, 21 Jan 2014 16:25:35 +0000 (17:25 +0100)]
gio: extend the system_internal lists with BSD paths
Matthias Clasen [Sun, 2 Feb 2014 02:48:35 +0000 (21:48 -0500)]
GVariant: Convert docs to markdown
Specifically, convert the sections to markdown syntax.
Matthias Clasen [Sun, 2 Feb 2014 02:41:57 +0000 (21:41 -0500)]
Don't use the varname tag
This is just an environment variable, after all.
Matthias Clasen [Sun, 2 Feb 2014 02:40:10 +0000 (21:40 -0500)]
gmain: Convert docs to markdown
Specifically, convert sections to markdown syntax and
drop all the para tags.
Matthias Clasen [Sun, 2 Feb 2014 02:18:29 +0000 (21:18 -0500)]
Don't use the quote tag
It was only used in two places, and we can easily do without.
Matthias Clasen [Sun, 2 Feb 2014 01:54:18 +0000 (20:54 -0500)]
Remove an unnecessary paragraph
Matthias Clasen [Sun, 2 Feb 2014 01:53:50 +0000 (20:53 -0500)]
Make gtk-doc find another symbol
Matthias Clasen [Sun, 2 Feb 2014 01:53:17 +0000 (20:53 -0500)]
GTree: formatting fixes
Matthias Clasen [Sun, 2 Feb 2014 01:51:53 +0000 (20:51 -0500)]
gstrfuncs: Fix up gtk-doc warnings
Matthias Clasen [Sun, 2 Feb 2014 01:50:57 +0000 (20:50 -0500)]
grand: formatting cleanups
Matthias Clasen [Sun, 2 Feb 2014 01:50:33 +0000 (20:50 -0500)]
Formatting cleanups
Matthias Clasen [Sun, 2 Feb 2014 01:49:59 +0000 (20:49 -0500)]
Avoid another gtk-doc warning
Matthias Clasen [Sun, 2 Feb 2014 01:49:21 +0000 (20:49 -0500)]
Avoid a gtk-doc warning
Matthias Clasen [Sun, 2 Feb 2014 01:48:52 +0000 (20:48 -0500)]
GIOChannel: Move some docs where they are looked for
Matthias Clasen [Sun, 2 Feb 2014 01:47:23 +0000 (20:47 -0500)]
Avoid some gtk-doc warnings
Matthias Clasen [Sun, 2 Feb 2014 01:46:43 +0000 (20:46 -0500)]
Drop another use of xinclude
Matthias Clasen [Sun, 2 Feb 2014 01:45:25 +0000 (20:45 -0500)]
GArray: Documentation cleanups
Matthias Clasen [Sun, 2 Feb 2014 01:43:53 +0000 (20:43 -0500)]
Docs: Avoid a 'returns' at the beginning of the line
This confuses gtk-doc.
Matthias Clasen [Sun, 2 Feb 2014 01:43:01 +0000 (20:43 -0500)]
Add some more deprecation guards to shut up gtk-doc
Matthias Clasen [Sun, 2 Feb 2014 01:41:47 +0000 (20:41 -0500)]
Drop use of xinclude in GTestDBus docs
Matthias Clasen [Sun, 2 Feb 2014 01:41:12 +0000 (20:41 -0500)]
Docs: Remove another use of xinclude
Matthias Clasen [Sun, 2 Feb 2014 01:40:41 +0000 (20:40 -0500)]
Fix up missing symbols in glib-sections.txt
Matthias Clasen [Sat, 1 Feb 2014 20:26:38 +0000 (15:26 -0500)]
Drop use of the command tag
It is more useful to link to the included man page, anyway.
Matthias Clasen [Sat, 1 Feb 2014 20:25:43 +0000 (15:25 -0500)]
Docs: Drop use of indexterm tags
These have not been making it into the index, anyway.
Matthias Clasen [Sat, 1 Feb 2014 20:11:49 +0000 (15:11 -0500)]
Annotate all examples with their language
The C ones, at least.
Matthias Clasen [Sat, 1 Feb 2014 20:11:00 +0000 (15:11 -0500)]
GApplicationCommandline: Shorten embedded examples
Just show relevant fragments of the three examples inline,
and link to the full sources. This lets us get rid of
xinclude markup.
Matthias Clasen [Sat, 1 Feb 2014 17:19:04 +0000 (12:19 -0500)]
docs: Stop using the function tag
Matthias Clasen [Sat, 1 Feb 2014 17:09:14 +0000 (12:09 -0500)]
Don't use computeroutput tag
There was one occurrence of this.
Matthias Clasen [Sat, 1 Feb 2014 16:57:13 +0000 (11:57 -0500)]
Docs: Big entity cleanup
Strip lots of entity use from |[ ]| examples (which are now
implicit CDATA). Also remove many redundant uses of <!-- -->.
Matthias Clasen [Sat, 1 Feb 2014 16:08:23 +0000 (11:08 -0500)]
GModule: Move docs away from markup
Matthias Clasen [Sat, 1 Feb 2014 15:48:36 +0000 (10:48 -0500)]
gtestdbus: Use markdown for sections
Matthias Clasen [Sat, 1 Feb 2014 15:48:02 +0000 (10:48 -0500)]
GSettings: use markdown for sections
Matthias Clasen [Sat, 1 Feb 2014 15:47:09 +0000 (10:47 -0500)]
gconvert: Stop using footnotes
These don't really work in the generated docs, so just copy
the content in the few places.
Matthias Clasen [Sat, 1 Feb 2014 15:19:07 +0000 (10:19 -0500)]
GObject: Convert docs to markdown
In particular, convert lists to markdown syntax.
Matthias Clasen [Sat, 1 Feb 2014 15:18:07 +0000 (10:18 -0500)]
gregex: Convert docs to markdown
In particular, convert lists to markdown syntax.
Matthias Clasen [Sat, 1 Feb 2014 15:17:28 +0000 (10:17 -0500)]
goption: Convert docs to markdown
In particular, convert lists to markdown syntax.
Matthias Clasen [Sat, 1 Feb 2014 15:17:04 +0000 (10:17 -0500)]
gmessages: Convert docs to markdown
In particular, convert lists to markdown syntax.