platform/upstream/glib.git
11 years agoregex: Add BSR_ANYCRLF and BSR_ANY match options
Christian Persch [Thu, 7 Jun 2012 14:44:52 +0000 (16:44 +0200)]
regex: Add BSR_ANYCRLF and BSR_ANY match options

These flags override the compile option at match time. They use PCRE_BSR_ANYCRLF
and PCRE_BSR_UNICODE, resp., which make \R match only CR, LF and CRLF, or any
Unicode newline character or character sequences, resp.

11 years agoregex: Add BSR_ANYCRLF compile option
Christian Persch [Thu, 7 Jun 2012 14:44:10 +0000 (16:44 +0200)]
regex: Add BSR_ANYCRLF compile option

When this flag is set, \R only matches CR, LF and CRLF.

11 years agoregex: Fix newline definition for system PCRE
Christian Persch [Thu, 7 Jun 2012 14:42:50 +0000 (16:42 +0200)]
regex: Fix newline definition for system PCRE

While we PCRE_BSR_UNICODE is the default in the internal PCRE, that may
not be true for the system one. Force the PCRE_BSR_UNICODE flag on it.

11 years agoregex: Don't return from inside a g_once_init_enter/leave block
Christian Persch [Thu, 7 Jun 2012 14:07:04 +0000 (16:07 +0200)]
regex: Don't return from inside a g_once_init_enter/leave block

When using the system PCRE, and it was compiled with incompatible options,
the code was returning from inside a g_once_init_enter/leave block without
calling g_once_init_leave().

11 years agoregex: Add accessor for PCRE_INFO_HASCRORLF
Christian Persch [Thu, 7 Jun 2012 13:57:15 +0000 (15:57 +0200)]
regex: Add accessor for PCRE_INFO_HASCRORLF

This flag is new in PCRE 7.3, and checks whether there is an explicit
CR or LF reference in the pattern.

11 years agoregex: Remove message for unused error code
Christian Persch [Thu, 7 Jun 2012 13:36:11 +0000 (15:36 +0200)]
regex: Remove message for unused error code

Since PCRE 7.3 the PCRE_ERROR_NULLWSLIMIT error is not returned anymore.

11 years agoregex: Add NEWLINE_ANYCRLF match option
Christian Persch [Thu, 7 Jun 2012 13:26:02 +0000 (15:26 +0200)]
regex: Add NEWLINE_ANYCRLF match option

This PCRE option is new in PCRE 7.1.

11 years agoregex: Add NEWLINE_ANYCRLF compile option
Christian Persch [Thu, 7 Jun 2012 13:23:37 +0000 (15:23 +0200)]
regex: Add NEWLINE_ANYCRLF compile option

The PCRE_NEWLINE_ANYCRLF option is new in PCRE 7.1. With it set, the only
only newline sequences recognised are CR, LF and CRLF.

11 years agoregex: Assert that our flags values are the same as PCRE's
Christian Persch [Thu, 7 Jun 2012 12:48:51 +0000 (14:48 +0200)]
regex: Assert that our flags values are the same as PCRE's

We rely on those flags having the same values as PCRE's (so we can pass
them right through), so assert this at compile time.

11 years agoUpdated codegen to work with python3.
Simon Feltman [Thu, 14 Jun 2012 06:20:17 +0000 (23:20 -0700)]
Updated codegen to work with python3.

Most changes were just replacing usage of "has_key" with "in".
Also updated the sorting function which was simplified and
changed to a "key" function instead of "cmp" (which is no longer
supported in python3. Verified everything builds with
python 2.7 and 3.

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

11 years agoregex: Handle PCRE_ERROR_RECURSIONLOOP
Christian Persch [Thu, 7 Jun 2012 23:08:10 +0000 (01:08 +0200)]
regex: Handle PCRE_ERROR_RECURSIONLOOP

Was missing from the error conversion routine.

11 years agoregex: Update GRegexError with newer PCRE error codes
Christian Persch [Wed, 6 Jun 2012 19:55:01 +0000 (21:55 +0200)]
regex: Update GRegexError with newer PCRE error codes

Update the GRegexError enum with new PCRE errors up to PCRE 8.30.

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

11 years agoregex: Simplify regex compile tests
Christian Persch [Thu, 7 Jun 2012 16:22:44 +0000 (18:22 +0200)]
regex: Simplify regex compile tests

Use a macro instead of repeating the same code over and over again.

11 years agoregex: Deprecate an obsolete error code
Christian Persch [Thu, 7 Jun 2012 17:53:17 +0000 (19:53 +0200)]
regex: Deprecate an obsolete error code

G_REGEX_ERROR_DEFINE_REPETION is dead and never raised by PCRE.

11 years agoregex: Fix PCRE error code conversion
Christian Persch [Wed, 6 Jun 2012 19:54:08 +0000 (21:54 +0200)]
regex: Fix PCRE error code conversion

Use the shifted error codes for comparisions.

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

11 years agoUpdated Vietnamese translation
Nguyễn Thái Ngọc Duy [Sat, 30 Jun 2012 02:55:26 +0000 (09:55 +0700)]
Updated Vietnamese translation

11 years agopo/vi: import from Damned Lies
Nguyễn Thái Ngọc Duy [Sat, 30 Jun 2012 02:42:53 +0000 (09:42 +0700)]
po/vi: import from Damned Lies

11 years agoGOptionContext: Don't show headings without options
Matthias Clasen [Fri, 29 Jun 2012 17:47:15 +0000 (13:47 -0400)]
GOptionContext: Don't show headings without options

If the only entry in the main group is for the rest args,
don't bother printing "Application Options".

11 years agoUse the same Python as we found in configure
Johan Dahlin [Fri, 29 Jun 2012 14:59:23 +0000 (11:59 -0300)]
Use the same Python as we found in configure

Don't assume /usr/bin/python is python 2.x, on newer Ubuntu versions
it's actually python 3.x.

11 years agoUpdated Greek translation
Tom Tryfonidis [Thu, 28 Jun 2012 14:44:14 +0000 (17:44 +0300)]
Updated Greek translation

11 years agoFix /contenttype/guess test
Martin Pitt [Wed, 27 Jun 2012 14:30:38 +0000 (16:30 +0200)]
Fix /contenttype/guess test

After fixing bug 674452 this test case now reliably fails, as "ABC abc" is text
and definitively not PowerPoint. It previously worked as g_content_type_guess()
was reading beyond the boundary of the data due to specifying -1 as data
length.

Update that test case to expect a PO template instead, and add two more with a
definitive PO template syntax and some binary data. We do not currently have a
MIME magic for PowerPoint, so we cannot actually detect it with certainty, but
at least make sure that the returned MIME type is correct.

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

11 years agoFix the mimetype default fix
Alexander Larsson [Thu, 28 Jun 2012 13:38:06 +0000 (15:38 +0200)]
Fix the mimetype default fix

We need to ignore the defaults.list item only when there
was a mimetype handler found in a previous mimetype, not
if one was found for the same mimetype as the one that
is listed in defaults.list (same for the new-style defaults).

11 years agoFix default app lookup wrt parent types and defaults.list
Alexander Larsson [Thu, 28 Jun 2012 12:50:37 +0000 (14:50 +0200)]
Fix default app lookup wrt parent types and defaults.list

There was an issue when looking up the default handler
for a type where a supertype was listed in defaults.list.
We would pick the default for the parent type even if
there was a handler for the more specific type.

In the case of the new-style defaults marking (
"Default Applications" in mimeapps.list) we were already
checking for a more specific handler befor using a default,
but we also need to do a similar check for the defaults.list
case.

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

11 years agoGTlsInteraction: Fix incorrect locking of mutex
Stef Walter [Thu, 28 Jun 2012 12:41:39 +0000 (14:41 +0200)]
GTlsInteraction: Fix incorrect locking of mutex

 * Fix incorrect locking of mutex in g_tls_interaction_invoke_ask_password()

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

11 years agogio/tests/contenttype: Call g_content_type_guess() with valid data len
Martin Pitt [Wed, 27 Jun 2012 07:25:37 +0000 (09:25 +0200)]
gio/tests/contenttype: Call g_content_type_guess() with valid data len

g_content_type_guess() requires specifying a valid data length. Fixes a
segfault when running the test.

Also add an explicit check for this and return XDG_MIME_TYPE_UNKNOWN when
data_size is specified as -1, to avoid crashing.

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

11 years ago/mainloop/timeouts test: Reduce race condition
Martin Pitt [Wed, 27 Jun 2012 09:46:28 +0000 (11:46 +0200)]
/mainloop/timeouts test: Reduce race condition

Due to load, particular traits of the architecture, or other circumstances, the
/mainloop/timeouts sometimes manages to call the "every
100 ms" timer loop only 9 times in 1050 ms.

This is an inherent race-condition in the test; allow it some slack and accept
9 times as well.

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

11 years agovaluetransform: Fix definition of ulong_bool
Philipp Kern [Wed, 27 Jun 2012 08:57:50 +0000 (10:57 +0200)]
valuetransform: Fix definition of ulong_bool

On big endian 64 bit machines such as s390x, an uint is too small to hold a
ulong_bool; it needs to be an actual ulong.

https://bugzilla.gnome.org/show_bug.cgi?id=678949
http://bugs.debian.org/662057

11 years agoUpdated Bulgarian translation
Alexander Shopov [Wed, 27 Jun 2012 04:17:40 +0000 (07:17 +0300)]
Updated Bulgarian translation

11 years agoAllow slightly too small poll duration in /socket/timed_wait test
Martin Pitt [Tue, 26 Jun 2012 16:32:29 +0000 (18:32 +0200)]
Allow slightly too small poll duration in /socket/timed_wait test

Sometimes the poll duration in the /socket/timed_wait test is slightly lower
than the requested 100000, causing failures like

ERROR:/build/buildd/glib2.0-2.33.2/./gio/tests/socket.c:619:test_timed_wait:
  assertion failed (poll_duration > = 100000): (99240 >= 100000)
FAIL

Adjust the test to also allow some jitter in the "too small" direction, similar
to the already existing span for "slightly too large".

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

11 years agoGTestDBus: Don't call into gvfs
Colin Walters [Tue, 26 Jun 2012 00:46:28 +0000 (20:46 -0400)]
GTestDBus: Don't call into gvfs

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

11 years agoGMainContext: reorganize source list to avoid O(n) behavior
Dan Winship [Wed, 11 Apr 2012 17:08:13 +0000 (13:08 -0400)]
GMainContext: reorganize source list to avoid O(n) behavior

Rather than having a single priority-ordered list of GSources, store a
list of queues of each priority level. This means that adding a source
is now O(n) in the number of unique priority levels currently being
used, rather than O(n) in the total number of sources.

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

11 years agogmain: add GSourceIter
Dan Winship [Sat, 23 Jun 2012 02:21:05 +0000 (22:21 -0400)]
gmain: add GSourceIter

add an explicit iterator for GMainContext sources

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

11 years agogmain: rename some variables for clarity
Dan Winship [Sat, 23 Jun 2012 16:01:40 +0000 (12:01 -0400)]
gmain: rename some variables for clarity

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

11 years agogmain: child sources must always have same priority as parent
Dan Winship [Wed, 11 Apr 2012 14:22:45 +0000 (10:22 -0400)]
gmain: child sources must always have same priority as parent

A child source does not have a priority of its own; it must have the
same priority as its parent. Enforce this in
g_source_set_priority_unlocked().

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

11 years agoGSource: initialise ->priv on construct
Ryan Lortie [Tue, 30 Aug 2011 16:15:04 +0000 (12:15 -0400)]
GSource: initialise ->priv on construct

For efficiency, we waited until setting up child sources to allocate
->priv.  Simplify things a bit by allocating it from the start.

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

11 years agotests: add a timing test for adding lots of GSources
Dan Winship [Sun, 24 Jun 2012 13:48:10 +0000 (09:48 -0400)]
tests: add a timing test for adding lots of GSources

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

11 years agoglib/: gtk-doc cleanup
Ryan Lortie [Tue, 26 Jun 2012 03:23:36 +0000 (23:23 -0400)]
glib/: gtk-doc cleanup

11 years agoFix previous commit
Colin Walters [Mon, 25 Jun 2012 23:37:05 +0000 (19:37 -0400)]
Fix previous commit

11 years agogio/tests/actions: Plug a memory leak
Colin Walters [Mon, 25 Jun 2012 22:14:10 +0000 (18:14 -0400)]
gio/tests/actions: Plug a memory leak

11 years agoGIOScheduler: Disconnect from cancellable after job completes
Colin Walters [Mon, 25 Jun 2012 21:05:45 +0000 (17:05 -0400)]
GIOScheduler: Disconnect from cancellable after job completes

This was causing crashes when a cancellable was canceled after the job
had completed.

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

11 years ago*bump*
Ryan Lortie [Mon, 25 Jun 2012 20:55:31 +0000 (16:55 -0400)]
*bump*

11 years agoGLib 2.33.3 2.33.3
Ryan Lortie [Mon, 25 Jun 2012 20:29:53 +0000 (16:29 -0400)]
GLib 2.33.3

11 years agoRevert "GIOScheduler: Avoid constant iteration over pending job list"
Ryan Lortie [Mon, 25 Jun 2012 14:37:51 +0000 (10:37 -0400)]
Revert "GIOScheduler: Avoid constant iteration over pending job list"

This reverts commit 2839297686a9305b4fa909b93c337ef1d1a5e94b.

Conflicts:

gio/gioscheduler.c

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

11 years agoGDbusActionGroup: always set strict when _query_action fails
Lars Uebernickel [Mon, 25 Jun 2012 16:29:01 +0000 (18:29 +0200)]
GDbusActionGroup: always set strict when _query_action fails

11 years agoUpdated Galician translations
Fran Diéguez [Sun, 24 Jun 2012 22:01:07 +0000 (00:01 +0200)]
Updated Galician translations

11 years agoMark utf8 performance tests as such
Matthias Clasen [Sun, 24 Jun 2012 00:55:51 +0000 (20:55 -0400)]
Mark utf8 performance tests as such

11 years agoRemove a few redundant ;s
Matthias Clasen [Sat, 23 Jun 2012 21:58:51 +0000 (17:58 -0400)]
Remove a few redundant ;s

11 years agoAdd missing annotation to GDBusConnection::closed
Phil Clayton [Tue, 12 Jun 2012 15:09:19 +0000 (16:09 +0100)]
Add missing annotation to GDBusConnection::closed

Add annotation (allow-none) to the parameter error.

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

11 years agoUpdate the comment in gmarshal.list
Emmanuele Bassi [Thu, 31 May 2012 22:48:35 +0000 (23:48 +0100)]
Update the comment in gmarshal.list

The current note makes it look like the marshaller code generation has
been deprecated in favour of the libffi-based generic marshaller; this
is not the case, so we should probably clarify the point a bit.

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

11 years agoAdd a test for G_USER_DIRECTOR_DESKTOP
Matthias Clasen [Sat, 23 Jun 2012 21:51:11 +0000 (17:51 -0400)]
Add a test for G_USER_DIRECTOR_DESKTOP

Based on a patch by Marc-Antoine Perennou,
https://bugzilla.gnome.org/show_bug.cgi?id=676594

11 years agoregex: Fix unicode othercasing
Christian Persch [Sun, 17 Jun 2012 20:51:44 +0000 (22:51 +0200)]
regex: Fix unicode othercasing

The old _pcre_ucp_othercase() function was wrong in returning
NOTACHAR (0xffffffff) for characters that aren't changed by upper-
and lower-casing. This led to PCRE internally using incorrect (or
at least inefficient) character classes when using G_REGEX_CASELESS.

E.g. [Z-\x{100}] turned into:

[Z\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{39c}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{fffe}\x{178}z-\x{101}]

instead of the expected and efficient

[Z\x{39c}\x{178}z-\x{101}]

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

11 years agoAdd a note of caution to the g_slist_delete_link() docs
Matthias Clasen [Sat, 23 Jun 2012 21:30:10 +0000 (17:30 -0400)]
Add a note of caution to the g_slist_delete_link() docs

11 years agoUpdated Telugu Translation
Sasi Bhushan Boddepalli [Sat, 23 Jun 2012 04:46:28 +0000 (10:16 +0530)]
Updated Telugu Translation

11 years agoGIOScheduler: Use a GList, not GSList for jobs
Colin Walters [Thu, 21 Jun 2012 15:10:00 +0000 (11:10 -0400)]
GIOScheduler: Use a GList, not GSList for jobs

In general, code using g_slist_delete_link() is broken, because it
potentially requires an O(n) traversal.  Just switch to GList in this
case.

The performance hit here was exacerbated by the fact that we were
holding a mutex that needed to be accessed by all threads.

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

11 years agoGIOScheduler: Avoid constant iteration over pending job list
Colin Walters [Thu, 21 Jun 2012 14:20:20 +0000 (10:20 -0400)]
GIOScheduler: Avoid constant iteration over pending job list

The iteration over the list (while holding a mutex) was a serious
performance hit for asynchronous I/O.  We can just use
g_cancellable_connect().

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

11 years agoGRand: Check return value of fopen directly
Colin Walters [Thu, 21 Jun 2012 19:44:16 +0000 (15:44 -0400)]
GRand: Check return value of fopen directly

This doesn't fix anything, it should just silence some static analysis
tools.

11 years agogspawn: Abort if we can't open /dev/null
Colin Walters [Thu, 21 Jun 2012 19:37:39 +0000 (15:37 -0400)]
gspawn: Abort if we can't open /dev/null

This really "shouldn't happen", but if we have an assertion here, it
will help static analysis tools know we're not hitting undefined
state.

11 years agotests/unix: Ensure buffer is NUL terminated
Colin Walters [Thu, 21 Jun 2012 19:33:51 +0000 (15:33 -0400)]
tests/unix: Ensure buffer is NUL terminated

11 years agogsignal: Properly handle NULL nodes
Colin Walters [Thu, 21 Jun 2012 16:12:53 +0000 (12:12 -0400)]
gsignal: Properly handle NULL nodes

11 years agogresourcefile.c: Remove stray semicolon
Colin Walters [Thu, 21 Jun 2012 16:12:33 +0000 (12:12 -0400)]
gresourcefile.c: Remove stray semicolon

11 years agogmenu: Remove stray semicolon in g_menu_clear_item()
Colin Walters [Thu, 21 Jun 2012 16:08:05 +0000 (12:08 -0400)]
gmenu: Remove stray semicolon in g_menu_clear_item()

11 years agotests: Add missing initializer for return value
Colin Walters [Thu, 21 Jun 2012 16:06:34 +0000 (12:06 -0400)]
tests: Add missing initializer for return value

11 years agotests: Add missing va_end()
Colin Walters [Thu, 21 Jun 2012 16:05:39 +0000 (12:05 -0400)]
tests: Add missing va_end()

11 years agogfileutils: Remove extra fclose()
Colin Walters [Thu, 21 Jun 2012 16:00:04 +0000 (12:00 -0400)]
gfileutils: Remove extra fclose()

This is a regression introduced by:
commit 6ac8e6108cf15884e28fe1ecd3042dfce0e11dfd
Author: Matthias Clasen <mclasen@redhat.com>
Date:   Tue Jun 14 10:12:46 2011 -0400

    Don't leak resources in error cases

11 years agoUpdated Spanish translation
Daniel Mustieles [Fri, 22 Jun 2012 11:44:29 +0000 (13:44 +0200)]
Updated Spanish translation

11 years agogresolver: More robust parsing of DNS responses
Stef Walter [Sun, 13 May 2012 05:44:57 +0000 (07:44 +0200)]
gresolver: More robust parsing of DNS responses

 * Handle truncated responses, and invalid names

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

11 years agoAdd g_dbus_object_manager_server_is_exported()
Matthew Barnes [Fri, 22 Jun 2012 03:39:14 +0000 (23:39 -0400)]
Add g_dbus_object_manager_server_is_exported()

Returns whether a GDBusObjectSkeleton is exported on a
GDBusObjectManagerServer.

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

11 years agoGUnixVolumeMonitor: Make use of new g_list_copy_deep()
Colin Walters [Thu, 21 Jun 2012 22:32:06 +0000 (18:32 -0400)]
GUnixVolumeMonitor: Make use of new g_list_copy_deep()

11 years agoAdds g_list_copy_deep and g_slist_copy_deep
Jonh Wendell [Thu, 21 Jun 2012 15:23:23 +0000 (12:23 -0300)]
Adds g_list_copy_deep and g_slist_copy_deep

They make a full (deep) copy of a list.

In contrast with g_[s]list_copy(), these functions take a function as a argument
to make a copy of each list element, in addition to copying the list container itself.

The functions g_[s]list_copy() were reimplemented to just call the new functions
with NULL as the function argument, which will behave like current implementation.

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

11 years agogio/tests/proxy-test: fix cleanup
Dan Winship [Thu, 21 Jun 2012 19:13:06 +0000 (15:13 -0400)]
gio/tests/proxy-test: fix cleanup

make sure the proxy threads are in the "waiting for a connection"
state when we do the final cleanup, or else there are race conditions
involving which thread processes the GCancellable cancellation first.

11 years agoInstall bash completion files in /usr/share/
Matthias Clasen [Thu, 21 Jun 2012 10:11:58 +0000 (06:11 -0400)]
Install bash completion files in /usr/share/

The bash-completion code nowadays expects completion files to
be installed in  /usr/share/bash-completion/completions, and
expects them to be named like the command they are completing
for.

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

11 years agogio/tests/pollable: add can_poll() assertions
Dan Winship [Wed, 20 Jun 2012 14:14:01 +0000 (10:14 -0400)]
gio/tests/pollable: add can_poll() assertions

Assert that socket streams and socket/pipe-based unix streams are
pollable, and file-based unix streams are not.

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

11 years agogdbus: fix generated code to not warn under -Wfloat-equal
Dan Winship [Mon, 18 Jun 2012 19:31:47 +0000 (15:31 -0400)]
gdbus: fix generated code to not warn under -Wfloat-equal

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

11 years agomsvc_recommended_pragmas.h: Re-enable C4819 warnings
Chun-wei Fan [Wed, 20 Jun 2012 02:19:14 +0000 (10:19 +0800)]
msvc_recommended_pragmas.h: Re-enable C4819 warnings

Apparently the C4819 warnings appear due to a bug on Visual C++ on DBCS
locales, so re-enable this.

Add a note in the Visual C++ Readme.txt's regarding this.

11 years agoAssamese translation reviewed
Nilamdyuti Goswami [Tue, 19 Jun 2012 13:21:26 +0000 (18:51 +0530)]
Assamese translation reviewed

11 years agoBug 678332-gio/gconverterinputstream.c: Fix build
Chun-wei Fan [Tue, 19 Jun 2012 08:35:26 +0000 (16:35 +0800)]
Bug 678332-gio/gconverterinputstream.c: Fix build

Apparently the previous change to this file broke GCC builds, so fix that.

11 years agoBug 678332-GIO: Fix build on Windows/non-GCC
Chun-wei Fan [Tue, 19 Jun 2012 04:04:28 +0000 (12:04 +0800)]
Bug 678332-GIO: Fix build on Windows/non-GCC

-gconverterinputstream.c: Avoid GCCism by not using non-standard pointer
 arithmetic on void*, but do a cast to char * as that seems to be what the
 variable was used for.
-gtestdbus.c: Don't include unistd.h unconditionally, and use g_usleep()
 instead of usleep(), as usleep() is not universally available.

11 years agobuild/win32/vs9/glib.vsprops: Cosmetics
Chun-wei Fan [Mon, 18 Jun 2012 09:09:56 +0000 (17:09 +0800)]
build/win32/vs9/glib.vsprops: Cosmetics

Make it more consistent accross the board by using CopyDir as the
output/"install" folder.

11 years agoFix g_utf8_validate() out argument transfer mode
Martin Pitt [Mon, 18 Jun 2012 05:39:23 +0000 (07:39 +0200)]
Fix g_utf8_validate() out argument transfer mode

The "end" argument is unusual in g_utf8_validate(): it's not a classic out
argument which gets allocated by the called function, but merely points into
one of its input arguments. Thus it is "transfer none".

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

11 years agodocs: fix an example
Dan Winship [Sat, 16 Jun 2012 14:38:45 +0000 (10:38 -0400)]
docs: fix an example

11 years agoGKeyFile: Deal better with blank lines
Matthias Clasen [Fri, 15 Jun 2012 22:53:09 +0000 (18:53 -0400)]
GKeyFile: Deal better with blank lines

There is no need to store a has_trailing_blank_line boolean for
each group, we can just check this at the time we assemble the data.

This fixes a problem without roundtrips where we would sometimes
add an extra blank line between groups.

The testcase here is inspired by
https://bugzilla.gnome.org/show_bug.cgi?id=677817

11 years agoGWakeup: Avoid extraneous wakeups
Matthias Clasen [Fri, 15 Jun 2012 19:16:13 +0000 (15:16 -0400)]
GWakeup: Avoid extraneous wakeups

We were checking the wrong number here, and waking up unnecessarily.
https://bugzilla.gnome.org/show_bug.cgi?id=678052

11 years agoImprove g_find_program_in_path documentation
Paolo Borelli [Fri, 15 Jun 2012 12:41:20 +0000 (14:41 +0200)]
Improve g_find_program_in_path documentation

Document that g_find_program_in_path returns a newly-allocated string

11 years agoUpdated Greek translation
Tom Tryfonidis [Fri, 15 Jun 2012 10:15:48 +0000 (13:15 +0300)]
Updated Greek translation

11 years agoUpdated Spanish translation
Daniel Mustieles [Thu, 14 Jun 2012 11:48:29 +0000 (13:48 +0200)]
Updated Spanish translation

11 years agoUpdated Arabic translation
Khaled Hosny [Wed, 13 Jun 2012 19:00:44 +0000 (21:00 +0200)]
Updated Arabic translation

11 years agoUpdate to use XDG cache home for thumbnails
William Jon McCann [Mon, 30 Apr 2012 16:51:25 +0000 (12:51 -0400)]
Update to use XDG cache home for thumbnails

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

11 years agoImprove GTimeZone test coverage
Matthias Clasen [Wed, 13 Jun 2012 18:43:29 +0000 (14:43 -0400)]
Improve GTimeZone test coverage

11 years agoglib-compile-resources: Forward errors from spawned processes
Benjamin Otte [Wed, 13 Jun 2012 15:33:01 +0000 (17:33 +0200)]
glib-compile-resources: Forward errors from spawned processes

We just grab stderr from gdk-pixbuf-to-csource and xmllint and include
it in the error message. It's the best we can do.

11 years agogtype: make these cases fatal.
Stefan Sauer [Tue, 12 Jun 2012 18:22:39 +0000 (20:22 +0200)]
gtype: make these cases fatal.

Otherwise we crash with a null-ptr deref in g_object_newv and ever there we
should not return null, as we're saying that object creation will not return
null.

11 years agoupdate .gitignore
Dan Winship [Tue, 12 Jun 2012 11:09:53 +0000 (07:09 -0400)]
update .gitignore

11 years agogunixoutputstream: add missing can_poll() implementation
Dan Winship [Tue, 12 Jun 2012 11:08:26 +0000 (07:08 -0400)]
gunixoutputstream: add missing can_poll() implementation

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

11 years agoRemove trailing commas from enums
Murray Cumming [Tue, 12 Jun 2012 08:35:52 +0000 (10:35 +0200)]
Remove trailing commas from enums

11 years agoCorrect the docs for g_time_zone_adjust_time
Matthias Clasen [Mon, 11 Jun 2012 14:24:03 +0000 (10:24 -0400)]
Correct the docs for g_time_zone_adjust_time

March 13, 2010 is very ordinary.
March 14, 2010 is the special day.

11 years agoImprove GTimeZone test coverage
Matthias Clasen [Mon, 11 Jun 2012 14:23:42 +0000 (10:23 -0400)]
Improve GTimeZone test coverage

11 years agoCosmetic changes
Matthias Clasen [Mon, 11 Jun 2012 11:19:42 +0000 (07:19 -0400)]
Cosmetic changes

11 years agoImprove GOptionContext test coverage
Matthias Clasen [Mon, 11 Jun 2012 11:19:14 +0000 (07:19 -0400)]
Improve GOptionContext test coverage

11 years agoFix a typo
Matthias Clasen [Mon, 11 Jun 2012 11:18:29 +0000 (07:18 -0400)]
Fix a typo

It is 'entries', not 'entires'.

11 years agoGDBusProxy: Treat org.freedesktop.systemd1.Masked error as non-fatal
David Zeuthen [Fri, 8 Jun 2012 17:30:48 +0000 (13:30 -0400)]
GDBusProxy: Treat org.freedesktop.systemd1.Masked error as non-fatal

This is useful otherwise we'll fail if a systemd service is
masked. See bug 677718 for details.

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

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
11 years agoFix path to aclocal in output message
Daniel Macks [Thu, 7 Jun 2012 02:40:26 +0000 (22:40 -0400)]
Fix path to aclocal in output message

datadir is defined in terms of datarootdir by default in configure
(datadir='${datarootdir}' with ${datarootdir} not expanded), so
defining datadir must happen *after* datarootdir is defined in the
glib-gettextize shell script. Otherwise ${datarootdir} is null when it
is expanded at runtime.

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