platform/upstream/glib.git
10 years agoUpdated Polish translation
Piotr Drąg [Sun, 2 Mar 2014 18:24:01 +0000 (19:24 +0100)]
Updated Polish translation

10 years agohmac: Make unit test const-correct
Philip Withnall [Wed, 19 Feb 2014 18:03:37 +0000 (18:03 +0000)]
hmac: Make unit test const-correct

https://bugzilla.gnome.org/show_bug.cgi?id=724741

10 years agogmain: simplify g_main_context_find_source_by_id()
Ryan Lortie [Sat, 8 Feb 2014 12:23:46 +0000 (12:23 +0000)]
gmain: simplify g_main_context_find_source_by_id()

Since we now keep a hashtable of sources, we can implement this function
without iteration.

https://bugzilla.gnome.org/show_bug.cgi?id=724839

10 years agogmain: Simplify source id tracking
Ryan Lortie [Sat, 8 Feb 2014 12:17:10 +0000 (12:17 +0000)]
gmain: Simplify source id tracking

Simplify our tracking of issued source id integers and fix some bugs.

Previously the source's id was remove from the 'used' table from
source_remove_from_context() which was also called if the source
priority was changed (in which case it would never be added back to the
table).  The source id could be reissued in that case.

In the new approach, we just always keep a hash table of sources, by
source id.  This simplifies the logic and will also allow us to improve
performance of g_main_context_find_source_by_id() which is called in some
fairly common cases, such as g_source_remove().  These improvements will be in
the following commits.

https://bugzilla.gnome.org/show_bug.cgi?id=724839

10 years agoTest content type icons more thoroughly
Matthias Clasen [Sun, 23 Feb 2014 17:03:13 +0000 (12:03 -0500)]
Test content type icons more thoroughly

Check we actually get the right icon names, and check
that symbolic icons fall back to non-symbolic ones.

10 years agoAdd non-symbolic fallback icons in g_content_type_get_symbolic_icon().
John Lindgren [Sun, 23 Feb 2014 05:52:31 +0000 (00:52 -0500)]
Add non-symbolic fallback icons in g_content_type_get_symbolic_icon().

This makes the behavior consistent with e.g. g_volume_get_symbolic_icon().

https://bugzilla.gnome.org/show_bug.cgi?id=724994

10 years agoasyncqueue: fix timeout math on 32bit systems
Ryan Lortie [Sun, 23 Feb 2014 06:11:50 +0000 (01:11 -0500)]
asyncqueue: fix timeout math on 32bit systems

88182d375e13ae6519a288d5295220c83ca27e73 caught this issue in
g_async_queue_timed_pop() but failed to fix the same bug in the _unlocked()
variant.

This is only a problem on 32bit systems.  On 64bit systems, the tv_sec
in a timeval is already 64 bits, so no overflow occurs.

https://bugzilla.gnome.org/show_bug.cgi?id=722604

10 years agomappedfile test: permit ENODEV on /dev/null
Ryan Lortie [Sun, 23 Feb 2014 05:47:29 +0000 (00:47 -0500)]
mappedfile test: permit ENODEV on /dev/null

mmap() on /dev/null returns ENODEV on old Linux versions and also on
Hurd, so accept that in the testcase.

https://bugzilla.gnome.org/show_bug.cgi?id=722360

10 years agoFix build of gio/gapplication.c on Visual C++
Chun-wei Fan [Thu, 20 Feb 2014 00:47:54 +0000 (08:47 +0800)]
Fix build of gio/gapplication.c on Visual C++

Visual C++ is quite zealous about checking against the types used in the
initializing of array of structures, even up to Visual C++ 2013.  Fix this
by splitting up the initializing steps.

https://bugzilla.gnome.org/show_bug.cgi?id=724609

10 years agogsocket: use check/prepare only on win32
Ryan Lortie [Thu, 13 Feb 2014 22:07:07 +0000 (17:07 -0500)]
gsocket: use check/prepare only on win32

There is no longer any code left in the check/prepare functions on UNIX,
so put %NULL in the GSourceFuncs vtable.

This also allows us to simplify some logic.

https://bugzilla.gnome.org/show_bug.cgi?id=724707

10 years agogsocket: use _add_unix_fd() instead of _add_poll()
Ryan Lortie [Thu, 13 Feb 2014 21:37:49 +0000 (16:37 -0500)]
gsocket: use _add_unix_fd() instead of _add_poll()

Use g_source_add_unix_fd() on UNIX instead of using a GPollFD.

https://bugzilla.gnome.org/show_bug.cgi?id=724707

10 years agogsocket: make use of g_source_set_ready_time()
Ryan Lortie [Thu, 13 Feb 2014 21:59:28 +0000 (16:59 -0500)]
gsocket: make use of g_source_set_ready_time()

Drop our own hand-rolled version of the same functionality.

https://bugzilla.gnome.org/show_bug.cgi?id=724707

10 years agoGSource: mark some API as "implementation only"
Ryan Lortie [Fri, 21 Feb 2014 00:05:30 +0000 (19:05 -0500)]
GSource: mark some API as "implementation only"

Clarify that _add_poll() _remove_poll() _add_unix_fd(),
_modify_unix_fd(), _remove_unix_fd(), _query_unix_fd(),
_set_ready_time(), _add_child_source() and _remove_child_source() are only
intended to be used by the implementation of a particular GSource -- not its
consumers.

https://bugzilla.gnome.org/show_bug.cgi?id=724707

10 years agogsocket: don't abuse GPollFD.revents field
Ryan Lortie [Thu, 13 Feb 2014 21:58:34 +0000 (16:58 -0500)]
gsocket: don't abuse GPollFD.revents field

We are reusing the GPollFD.revents field of the source to store a
temporary value.  Use a local variable for that instead.

This is a refactor to make the next commit easier to understand.

https://bugzilla.gnome.org/show_bug.cgi?id=724707

10 years agogsocket: use cancellable child source
Ryan Lortie [Thu, 13 Feb 2014 21:34:29 +0000 (16:34 -0500)]
gsocket: use cancellable child source

Now that GCancellable's GSource is based on _set_ready_time() instead of
an fd, we should use it as a child source, instead of forcing the
creation of the fd and adding it as a poll.

https://bugzilla.gnome.org/show_bug.cgi?id=724707

10 years agogsocket: trivial typo fix
Ryan Lortie [Thu, 13 Feb 2014 21:16:27 +0000 (16:16 -0500)]
gsocket: trivial typo fix

https://bugzilla.gnome.org/show_bug.cgi?id=724707

10 years agogmain: repeat preconditions for emphasis
Ryan Lortie [Sat, 22 Feb 2014 14:22:27 +0000 (09:22 -0500)]
gmain: repeat preconditions for emphasis

g_main_context_acquire() mentions that you must have called it before
you make any calls to _prepare(), _query(), _check() or _dispatch().

For emphasis, add a note on each of those functions pointing back to the
fact that you must have called _acquire() before using them.

10 years agog_main_context_wait: add a critical to detect use
Ryan Lortie [Fri, 21 Feb 2014 21:25:09 +0000 (16:25 -0500)]
g_main_context_wait: add a critical to detect use

Due to its unusual interface, I suspect that nobody is using
g_main_context_wait() but there is no way to know.

Add a critical notice that will be displayed if anyone calls the
function, asking them to file a bug with us.

We'll let this go out with the 2.40 release and see if we get a response
before we proceed with actually breaking the functionality.

10 years agoGCond: check result of pthread_condattr_setclock()
Ryan Lortie [Fri, 21 Feb 2014 21:40:16 +0000 (16:40 -0500)]
GCond: check result of pthread_condattr_setclock()

Make sure this call succeeds, aborting if it doesn't

This will prevent people from having to waste time chasing down the problems
that would otherwise be caused by this silent failure.

10 years agogmain: abort if monotonic time is unsupported
Ryan Lortie [Fri, 21 Feb 2014 15:20:11 +0000 (10:20 -0500)]
gmain: abort if monotonic time is unsupported

We now depend on CLOCK_MONOTONIC, but it's possible that people may
attempt to run GLib on systems where it isn't supported at runtime.

Check the return value of clock_gettime() and abort() if it fails in
order to save these people from wasting time on debugging a tricky
issue.

https://bugzilla.gnome.org/show_bug.cgi?id=670144

10 years agoGHashTable: Explicitly document that _iter_remove() is safe while iterating
Xavier Claessens [Fri, 21 Feb 2014 20:35:36 +0000 (15:35 -0500)]
GHashTable: Explicitly document that _iter_remove() is safe while iterating

https://bugzilla.gnome.org/show_bug.cgi?id=723316

10 years agoUpdated Lithuanian translation
Aurimas Černius [Fri, 21 Feb 2014 20:16:16 +0000 (22:16 +0200)]
Updated Lithuanian translation

10 years agoglib/Makefile.am: Dist gtranslit-data.h
Chun-wei Fan [Fri, 21 Feb 2014 09:06:56 +0000 (17:06 +0800)]
glib/Makefile.am: Dist gtranslit-data.h

This header needs to be distributed as well, which was
inadvertently missed.

https://bugzilla.gnome.org/show_bug.cgi?id=724858

10 years agoslow-motion post-release version bump
Ryan Lortie [Fri, 21 Feb 2014 12:56:06 +0000 (07:56 -0500)]
slow-motion post-release version bump

10 years agogconvert: add note to avoid transliteration
Ryan Lortie [Thu, 20 Feb 2014 23:49:37 +0000 (18:49 -0500)]
gconvert: add note to avoid transliteration

Add a note to the documentation of g_convert() advising to avoid using
it for transliteration.  Link to g_str_to_ascii().

10 years agogsource: document priority of child sources
Ryan Lortie [Thu, 13 Feb 2014 15:18:03 +0000 (10:18 -0500)]
gsource: document priority of child sources

Add a note to the documentation that child sources cannot have their priority
changed independently from their parent.  Add a g_return_if_fail() to the
public API in order to enforce this.

This was already a reality due to the check in
g_source_set_priority_unlocked(), but it was never explicitly documented.

https://bugzilla.gnome.org/show_bug.cgi?id=724706

10 years agog_str_to_ascii(): a couple of minor tweaks
Ryan Lortie [Thu, 20 Feb 2014 23:32:04 +0000 (18:32 -0500)]
g_str_to_ascii(): a couple of minor tweaks

Add a precondition guard and use g_string_sized_new() to avoid some
reallocations.

10 years agog_str_tokenize_and_fold: do proper transliteration
Ryan Lortie [Mon, 17 Feb 2014 18:15:55 +0000 (13:15 -0500)]
g_str_tokenize_and_fold: do proper transliteration

g_str_tokenize_and_fold() can now do proper locale-sensitive
transliteration for ascii alternatives.

https://bugzilla.gnome.org/show_bug.cgi?id=710142

10 years agotests: test transliteration API
Ryan Lortie [Mon, 17 Feb 2014 16:55:22 +0000 (11:55 -0500)]
tests: test transliteration API

Add some tests for the new transliteration API.

https://bugzilla.gnome.org/show_bug.cgi?id=710142

10 years agoAdd locale-sensitive ASCII transliteration API
Ryan Lortie [Mon, 17 Feb 2014 16:54:18 +0000 (11:54 -0500)]
Add locale-sensitive ASCII transliteration API

Add a new function, g_str_to_ascii() that does locale-dependent ASCII
transliteration of UTF-8 strings.

This function works off of an internal database.  We get the data out of
the localedata shipped with glibc, which seems to be just about the best
source of locale-sensitive transliteration information available
anywhere.

We include a update script with this commit that's not used by anything
at all -- it will just sit in git.  It is intended to be run manually
from time to time.

https://bugzilla.gnome.org/show_bug.cgi?id=710142

10 years agotests: add a test for g_cond_wait_until()
Ryan Lortie [Wed, 19 Feb 2014 00:04:24 +0000 (19:04 -0500)]
tests: add a test for g_cond_wait_until()

https://bugzilla.gnome.org/show_bug.cgi?id=673607

10 years agoFix g_cond_wait_until() vs. monotonic time
Ryan Lortie [Tue, 18 Feb 2014 23:50:18 +0000 (18:50 -0500)]
Fix g_cond_wait_until() vs. monotonic time

We've had a relatively rocky path with g_cond_wait_until() on systems
that either don't support pthread_condattr_setclock() or where
g_get_monotonic_time() is not based on CLOCK_MONOTONIC (ie: Android and
Mac OS).

Fortunately, both of these platforms seem to share
pthread_cond_timedwait_relative_np() which allows us to implement
g_cond_wait_until() without races.

With this patch, we now require that one of pthread_condattr_setclock()
or pthread_cond_timedwait_relative_np() exists.  A quick look around
suggests that this is true for all platforms that we care about.

This patch removes our use of pthread_cond_timedwait_monotonic() and
pthread_cond_timedwait_monotonic_np() which were Android-only APIs.

https://bugzilla.gnome.org/show_bug.cgi?id=673607

10 years agogmain: rework g_get_monotonic_time() a bit
Ryan Lortie [Tue, 18 Feb 2014 19:09:49 +0000 (14:09 -0500)]
gmain: rework g_get_monotonic_time() a bit

We now assume the existence of clock_gettime() and CLOCK_MONOTONIC as
specified by POSIX.1-2001.  This means that we always return truly
monotonic time, which will prevent problems in the case that the user
changes the time.

Mac OS doesn't have clock_gettime() but it does have
mach_absolute_time(), so we can use that there.

We keep our Windows case as well (although we should simplify it once XP
hits EOL later this year).

This patch removes the fallback to gettimeofday() in case of missing
clock_gettime().  We no longer have any way to test this codepath and
therefore it must go.

This patch also restructures the #ifdef a bit so that we repeat the
entire function definition inside of #ifdef instead of just the entire
body of one function.

https://bugzilla.gnome.org/show_bug.cgi?id=724687

10 years agodocs: use "Returns:" consistently
William Jon McCann [Thu, 20 Feb 2014 00:35:23 +0000 (19:35 -0500)]
docs: use "Returns:" consistently

Instead of "Return value:".

10 years agogio/gresolver.c: Fix build on Windows
Chun-wei Fan [Wed, 19 Feb 2014 05:57:18 +0000 (13:57 +0800)]
gio/gresolver.c: Fix build on Windows

Windows does not come with inet_aton(), and this check on IPv4 addresses
is actually not needed on Windows as the getaddrinfo() implementation on
Windows already rejects non-standard and non-real IPv4 numbers-and-dots
addresses.

https://bugzilla.gnome.org/show_bug.cgi?id=724609

10 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Wed, 19 Feb 2014 22:57:40 +0000 (23:57 +0100)]
Updated Norwegian bokmål translation

10 years agoAdd G_ÂTYPE_VARIANT_DCT into the doc
Xavier Claessens [Wed, 19 Feb 2014 20:51:27 +0000 (15:51 -0500)]
Add G_ÂTYPE_VARIANT_DCT into the doc

10 years agoGLib 2.39.90 2.39.90
Ryan Lortie [Mon, 17 Feb 2014 23:33:34 +0000 (18:33 -0500)]
GLib 2.39.90

10 years agoWork around test failure in gdbus-names
Ryan Lortie [Mon, 17 Feb 2014 23:13:01 +0000 (18:13 -0500)]
Work around test failure in gdbus-names

This is caused by g_test_dbus_down() returning too soon.

Add a sleep for now.

https://bugzilla.gnome.org/show_bug.cgi?id=711807

10 years agoGApplication: disable some more tests
Ryan Lortie [Mon, 17 Feb 2014 22:43:48 +0000 (17:43 -0500)]
GApplication: disable some more tests

Disable some racy GApplication testcases.  We need some better non-hacky
GApplication tests...

https://bugzilla.gnome.org/show_bug.cgi?id=724126

10 years agoBump gtk-doc dep to 1.20
Matthias Clasen [Mon, 17 Feb 2014 21:57:13 +0000 (16:57 -0500)]
Bump gtk-doc dep to 1.20

10 years agogsocket: fix g_socket_condition_timed_wait() recovery after EINTR
Dan Winship [Fri, 14 Feb 2014 20:35:11 +0000 (15:35 -0500)]
gsocket: fix g_socket_condition_timed_wait() recovery after EINTR

After getting an EINTR, g_socket_condition_timed_wait() has to adjust
its timeout, but it was trying to convert from nanoseconds to
microseconds by multiplying by 1000 rather than dividing... Oops.

https://bugzilla.gnome.org/show_bug.cgi?id=724239

10 years agogtestutils: make the new assert messages more detailed
Dan Winship [Fri, 14 Feb 2014 21:12:50 +0000 (16:12 -0500)]
gtestutils: make the new assert messages more detailed

g_assert_true(), g_assert_false(), g_assert_null(), and
g_assert_nonnull() simply printed out the expression they were
checking, without any further explanation of what went wrong. (In
particular, "g_assert_true(x)" and "g_assert_false(x)" would both
print the same thing on failure.) Add a little bit more context.

https://bugzilla.gnome.org/show_bug.cgi?id=724385

10 years agogio/tests: fix race when generating code
Ross Burton [Tue, 4 Feb 2014 13:15:08 +0000 (13:15 +0000)]
gio/tests: fix race when generating code

There is a race condition in the makefile that can result in build failures like this in parallel builds:

| ./gdbus-test-codegen-generated.h:7:0: error: unterminated #ifndef
|  #ifndef __GDBUS_TEST_CODEGEN_GENERATED_H__

This is because a rule like this:

x.c x.h: prerequisites
@commands

doesn't consider x.c and x.h together. Instead, it expands to two rules, one to
generate x.c and one to generate x.h, which happen to run the same commands.  In
the worst case they execute in parallel, overwriting each other's output.

Signed-off-by: Ross Burton <ross.burton@intel.com>
https://bugzilla.gnome.org/show_bug.cgi?id=723616

10 years agosubprocess: Init and clear the mutex
Olivier Crête [Sat, 15 Feb 2014 07:23:29 +0000 (02:23 -0500)]
subprocess: Init and clear the mutex

Fixes the leak of the GMutexImpl allocated inside the first call to g_mutex_lock()
on an uninitialized GMutex.

https://bugzilla.gnome.org/show_bug.cgi?id=724401

10 years agoAnnotate g_application_add_main_option_entries
Paolo Borelli [Sun, 16 Feb 2014 21:06:11 +0000 (22:06 +0100)]
Annotate g_application_add_main_option_entries

10 years agog_simple_async_result_is_valid: fix for NULL source tag
Dan Winship [Sun, 16 Feb 2014 14:24:04 +0000 (09:24 -0500)]
g_simple_async_result_is_valid: fix for NULL source tag

If a GSimpleAsyncResult has a NULL source tag, allow it to compare
valid to a non-NULL source tag in g_simple_async_result_is_valid(), to
simplify cases where, eg, g_simple_async_result_new() and
g_simple_async_result_report_error_in_idle() are both used.

https://bugzilla.gnome.org/show_bug.cgi?id=721458

10 years agoFix the build on FreeBSD by replacing EAI_NODATA with EAI_NONAME.
Koop Mast [Sat, 15 Feb 2014 18:54:21 +0000 (19:54 +0100)]
Fix the build on FreeBSD by replacing EAI_NODATA with EAI_NONAME.

https://bugzilla.gnome.org/show_bug.cgi?id=724434

10 years agowin32: fixup lib.exe invocation
Ryan Lortie [Sun, 12 Jan 2014 08:14:04 +0000 (03:14 -0500)]
win32: fixup lib.exe invocation

We have a configure.ac check for lib.exe that attempts to enable
creation of .lib files for our 5 public libraries.  That has been broken
for a long time for two reasons:

 1) the Makefiles hardcode 'lib' instead of 'lib.exe'

 2) we dropped generation of .def files quite some time ago (except for
    in gthread where we have the two-symbol file under version control)

Add new rules for creating .def files from dumpbin.exe (which you should
have if you have lib.exe) and fix the .lib rules to use lib.exe.

Add a bit of $(AM_V_GEN) all around, as well.

https://bugzilla.gnome.org/show_bug.cgi?id=722033

10 years agoonly '#pragma GCC' outside of functions
Ryan Lortie [Sat, 15 Feb 2014 13:44:05 +0000 (08:44 -0500)]
only '#pragma GCC' outside of functions

Don't use #pragma GCC inside of function scope.

https://bugzilla.gnome.org/show_bug.cgi?id=724417

10 years agogio: don't accept nonstandard IPv4 "numbers-and-dots" addresses
Dan Winship [Wed, 21 Aug 2013 01:36:25 +0000 (21:36 -0400)]
gio: don't accept nonstandard IPv4 "numbers-and-dots" addresses

In addition to the standard "192.168.1.1" format, there are numerous
legacy IPv4 address formats (such as "192.168.257",
"0xc0.0xa8.0x01.0x01", "0300.0250.0001.0001", "3232235777", and
"0xc0a80101"). However, none of these forms are ever used any more
except in phishing attempts. GLib wasn't supposed to be accepting
these addresses (neither g_hostname_is_ip_address() nor
g_inet_address_new_from_string() recognizes them), but getaddrinfo()
accepts them, and so the parts of gio that use getaddrinfo()
accidentally did accept those formats.

Fix GNetworkAddress and GResolver to reject these address formats.

https://bugzilla.gnome.org/show_bug.cgi?id=679957

10 years agogobject: re-allow finalization from constructor()
Dan Winship [Mon, 2 Dec 2013 16:59:30 +0000 (11:59 -0500)]
gobject: re-allow finalization from constructor()

Although returning NULL from constructor is strongly discouraged, some
old libraries need to keep doing it for ABI-compatibility reasons.
Given this, it's rude to forbid finalization from within
constructor(), since it would otherwise work correctly now anyway (and
the critical when returning NULL should discourage any new uses of
returning NULL from constructor()).

https://bugzilla.gnome.org/show_bug.cgi?id=661576

10 years agoFix g_socket_get_available() with TCP on Windows
Dan Winship [Sat, 1 Feb 2014 13:21:10 +0000 (14:21 +0100)]
Fix g_socket_get_available() with TCP on Windows

Windows needs a special inefficient hack to implement
g_socket_get_available() correctly for UDP sockets, but that hack
isn't needed for TCP, and in fact, might give the wrong answer in that
case. Fix it to only use the hack with UDP.

Also, fix that case to handle non-blocking sockets as well.

And add a test case for g_socket_get_available() with TCP.

https://bugzilla.gnome.org/show_bug.cgi?id=723422

10 years agodocs: Remove a few trailing <literal>s
Matthias Clasen [Sat, 15 Feb 2014 02:49:42 +0000 (21:49 -0500)]
docs: Remove a few trailing <literal>s

10 years agodocs: Remove some unneeded decorations
Matthias Clasen [Sat, 15 Feb 2014 02:39:11 +0000 (21:39 -0500)]
docs: Remove some unneeded decorations

@var is not expanded inside literal `` blocks.
Just remove those @ characters.

10 years agodocs: let go of &ast;
Matthias Clasen [Sat, 15 Feb 2014 02:33:36 +0000 (21:33 -0500)]
docs: let go of &ast;

Since we are no longer using sgml mode, using /&ast; &ast;/ to
escape block comments inside examples does not work anymore.
Switch to using line comments with //

10 years agoconfigure.ac: tweak inotify check
Ryan Lortie [Thu, 13 Feb 2014 23:26:07 +0000 (18:26 -0500)]
configure.ac: tweak inotify check

Our check for inotify_init1() being defined is broken.  We happily
declare that inotify is supported, even if the check fails.

This was originally intended to check for inotify_init1 in the libc so
that we could fall back to inotify_init if it was not yet defined.

FreeBSD has a libinotify that emulates the inotify API via kqueue.  It
installs a <sys/inotify.h> header and requires linking to -linotify.  We
don't want to falsely detect working inotify in this case.

Treat the lack of inotify_init1() in the libc as a lack of inotify
support.  This requires only a new libc -- we still support old kernels:
in the case that inotify1_init() fails, we fall back to inotify_init().

https://bugzilla.gnome.org/show_bug.cgi?id=724330

10 years agogtask: fix trivial doc typo
Dan Winship [Thu, 13 Feb 2014 17:59:20 +0000 (12:59 -0500)]
gtask: fix trivial doc typo

10 years agog_test_run: return 0 if all tests are skipped in TAP mode
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>
10 years agoglib/tests/collate.c: run to completion when skipping all tests
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>
10 years agogsocketconnection: Document closing connections with g_io_stream_close()
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

10 years agogsocketservice: Clarify g_socket_service_stop() documentation
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

10 years agog_child_watch_source_new: POSIX pid must be positive
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
10 years agoBe more clear that g_return_if_fail is undefined behaviour
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
10 years agopo/nb.po: Fix mismatched translation
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.

10 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Mon, 10 Feb 2014 15:16:41 +0000 (16:16 +0100)]
Updated Norwegian bokmål translation

10 years agoUpdated Indonesian translation
Andika Triwidada [Mon, 10 Feb 2014 14:55:59 +0000 (14:55 +0000)]
Updated Indonesian translation

10 years agogsubprocess: Fix ‘Since’ lines in documentation to read 2.40
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

10 years agogsubprocess: Fix a broken link in the documentation
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

10 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Mon, 10 Feb 2014 07:15:00 +0000 (08:15 +0100)]
Updated Norwegian bokmål translation

10 years ago[l10n] Updated Italian translation.
Milo Casagrande [Sun, 9 Feb 2014 11:21:34 +0000 (12:21 +0100)]
[l10n] Updated Italian translation.

10 years agoFix a misformatting in GVariant docs
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.

10 years agoDocs: Drop entities, switch away from sgml mode
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, &amp; -> &
and so on.

10 years agoConvert remaining examples to links
Matthias Clasen [Sat, 8 Feb 2014 22:52:21 +0000 (17:52 -0500)]
Convert remaining examples to links

10 years agoREmove another table
Matthias Clasen [Sat, 8 Feb 2014 20:59:24 +0000 (15:59 -0500)]
REmove another table

10 years agoRemove some informalexamples
Matthias Clasen [Sat, 8 Feb 2014 20:50:17 +0000 (15:50 -0500)]
Remove some informalexamples

10 years agoAnother stray <programlisting>
Matthias Clasen [Sat, 8 Feb 2014 20:34:04 +0000 (15:34 -0500)]
Another stray <programlisting>

10 years agoAnother stray litreal
Matthias Clasen [Sat, 8 Feb 2014 20:28:34 +0000 (15:28 -0500)]
Another stray litreal

10 years agoStrip out a remaining programlisting
Matthias Clasen [Sat, 8 Feb 2014 20:19:13 +0000 (15:19 -0500)]
Strip out a remaining programlisting

10 years agoConvert another table to a list
Matthias Clasen [Sat, 8 Feb 2014 20:18:37 +0000 (15:18 -0500)]
Convert another table to a list

10 years agoConvert more xincluded examples to external links
Matthias Clasen [Sat, 8 Feb 2014 20:18:06 +0000 (15:18 -0500)]
Convert more xincluded examples to external links

10 years agoDocs: Remove an example tag that has snuck back in
Matthias Clasen [Sat, 8 Feb 2014 18:55:27 +0000 (13:55 -0500)]
Docs: Remove an example tag that has snuck back in

10 years agoDocs: convert another table to a list
Matthias Clasen [Sat, 8 Feb 2014 18:47:02 +0000 (13:47 -0500)]
Docs: convert another table to a list

10 years agoConvert GVariantType table to a list
Matthias Clasen [Sat, 8 Feb 2014 18:43:16 +0000 (13:43 -0500)]
Convert GVariantType table to a list

10 years agoRemove a new literal tag that has crept in
Matthias Clasen [Sat, 8 Feb 2014 18:28:11 +0000 (13:28 -0500)]
Remove a new literal tag that has crept in

10 years agoRemove a few leftover <simplelist>s
Matthias Clasen [Sat, 8 Feb 2014 18:25:04 +0000 (13:25 -0500)]
Remove a few leftover <simplelist>s

10 years agoRemove a stray <em> tag
Matthias Clasen [Sat, 8 Feb 2014 18:22:58 +0000 (13:22 -0500)]
Remove a stray <em> tag

10 years agoRemove tables from GFileAttribute docs
Matthias Clasen [Sat, 8 Feb 2014 18:22:38 +0000 (13:22 -0500)]
Remove tables from GFileAttribute docs

10 years agoEradicate links and xrefs
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.

10 years agoUpdated Spanish translation
Daniel Mustieles [Fri, 7 Feb 2014 13:47:16 +0000 (14:47 +0100)]
Updated Spanish translation

10 years agoUpdated Galician translations
Fran Diéguez [Fri, 7 Feb 2014 00:27:18 +0000 (01:27 +0100)]
Updated Galician translations

10 years agoRemove a few overlooked literals
Matthias Clasen [Thu, 6 Feb 2014 21:59:49 +0000 (16:59 -0500)]
Remove a few overlooked literals

10 years agoStop using replaceable tags
Matthias Clasen [Thu, 6 Feb 2014 21:49:29 +0000 (16:49 -0500)]
Stop using replaceable tags

10 years agoStop using <para> for ids
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.

10 years agoUpdated Brazilian Portuguese translation
Enrico Nicoletto [Thu, 6 Feb 2014 18:32:02 +0000 (18:32 +0000)]
Updated Brazilian Portuguese translation

10 years agoDocs: replace <literal> by `
Matthias Clasen [Thu, 6 Feb 2014 13:04:52 +0000 (08:04 -0500)]
Docs: replace <literal> by `

10 years agoDocs: use quotes instead of firstterm
Matthias Clasen [Thu, 6 Feb 2014 03:57:27 +0000 (22:57 -0500)]
Docs: use quotes instead of firstterm

10 years agoDocs: don't use option tags
Matthias Clasen [Thu, 6 Feb 2014 03:49:54 +0000 (22:49 -0500)]
Docs: don't use option tags

10 years agoStop using starttag elements
Matthias Clasen [Thu, 6 Feb 2014 03:37:54 +0000 (22:37 -0500)]
Stop using starttag elements

10 years agoUse markdown for images
Matthias Clasen [Thu, 6 Feb 2014 03:02:24 +0000 (22:02 -0500)]
Use markdown for images