8950 Commits

Author SHA1 Message Date
Ryan Lortie
3c64200f68 release 2.26.0 2.26.0 2010-09-27 12:02:28 -04:00
Ryan Lortie
0aba35904c Remove some useless GTimeZone info from docs 2010-09-27 12:02:28 -04:00
Jorge González
6307e1fcf9 Updated Spanish translation 2010-09-27 17:54:54 +02:00
Petr Kovar
27034370c2 Update Czech translation 2010-09-27 17:24:52 +02:00
Ryan Lortie
e59c2c109f Improve .gitignore 2010-09-27 11:14:08 -04:00
Ryan Lortie
90ccb5a4cd Bug 628937 - gracefully handle broken schemas
Implement the second feature requested in the bug: silently ignore
override files that attempt to override schemas that are not currently
installed.

Also, support 'strictness' being optional for other errors when parsing
override files (ie: inability to open the file, unknown key name, parse
errors, out of range).  We don't completely back out the file in this
case — as that is difficult with the current implementation — but just
ignore the override for the single key.
2010-09-27 11:10:11 -04:00
Ryan Lortie
2f2eb5cc5d glib-compile-schemas: improve error accuracy
We wrote "<enum> must contain at least one <value>" for empty <flags>.
Fix that.
2010-09-27 10:36:11 -04:00
Ryan Lortie
7f92526481 Bug 628937 - gracefully handle broken schemas
Implement the first of two features requested in the bug: when
encountering a broken .xml schema file, back out the changes in that
file and continue to parse other files.

This prevents a single broken .xml file from messing up GSettings for
everyone else.

Add a --strict option to get the old behaviour.  Use this from the test
cases.
2010-09-27 10:27:11 -04:00
Ryan Lortie
9c0eb37adb Bug 630077 - GDateTime week number support
Fully implement support for ISO 8601 week dates in GDateTime and
document that this is the case.

Add an exhaustive test case to ensure correctness.
2010-09-27 09:17:56 -04:00
Fabrício Godoy
a0b79ad640 Updated Brazilian Portuguese translation 2010-09-27 08:49:51 -03:00
Damyan Ivanov
a46c897a27 Updated Bulgarian translation 2010-09-27 13:31:09 +03:00
Ryan Lortie
ed4d81deb9 clean up g_date_time_get_week_day()
No functionality changes here.

Vastly simplify the algorithm for calculating the day of the week.

Fix the documentation (which is incorrectly stating that 1 means
Sunday) and clarify that the number we return is in line with ISO 8601
week day numbering.
2010-09-26 18:54:20 -04:00
Wouter Bolsterlee
85d514ef6d Updated Dutch translation by Wouter Bolsterlee 2010-09-26 22:59:38 +02:00
Lucian Adrian Grijincu
e689d5cab9 Updated Romanian translation 2010-09-26 22:38:40 +03:00
Yuri Kozlov
3cd6f9f38e Updated Russian translation 2010-09-26 17:19:10 +04:00
Ryan Lortie
bee39ac0de GTimeZone: hide some API
I'm not totally happy with the API yet, so only expose the bits that are
required to make meaningful use of GDateTime.
2010-09-24 14:55:53 -04:00
David Zeuthen
c11a362cef GDBusConnection: Use correct GMainContext when invoking free functions
Without this fix, the ./gdbus-connection test case occasionally fails, see

 https://bugzilla.gnome.org/show_bug.cgi?id=629945#c5

like this

 /gdbus/connection/basic: OK
 /gdbus/connection/life-cycle: **
ERROR:gdbus-connection.c:223:test_connection_life_cycle: assertion failed:
(!quit_mainloop_fired)
 cleaning up bus with pid 21794
 Aborted (core dumped)

because the callback didn't happen on the same thread as where we are
running the loop.

Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-09-24 14:48:33 -04:00
Stefan Kost
e826803002 build: fix out of srcdir build
The gtk-doc makefile rules do cd srcdir && cp $(HTML_IMAGES) target/ and this
breaks for "srcdir" != ".".
2010-09-24 14:48:33 -04:00
David Zeuthen
69a7645a7a GDBus: fix name test cases
Since we make message buses come and go, we need to ensure that the
singleton connection instance goes away before attempting to call
g_bus_get_sync() or similar.

Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-09-24 14:48:33 -04:00
David Zeuthen
72433fc57a GDBus: bump timeout for some tests
When under load, a one second timeout is just not enough. This can be
observed by e.g. restarting a CPU- and IO-intensive application like a
web browser with many tabs while running the test cases. Therefore,
bump the timeouts to 30 seconds.

Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-09-24 14:48:33 -04:00
David Zeuthen
5528b18ce2 GDBus: Move "slow" connection test cases into separate test program
Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-09-24 14:48:33 -04:00
David Zeuthen
c4081f9abd GDBusConnection: Avoid callbacks on finalized connection
Turns out that GDBusWorker will issue callbacks (in its own thread)
even after g_dbus_worker_stop() has been called. This would rarely
happen (and unreffing a connection is even rarer) so only saw this bug
occasionally when running the gdbus-connection test case in a loop.

Fix up this issue by maintaining a set of GDBusConnection objects that
are currently "alive" and do nothing in the callbacks if the passed
user_data pointer is not in this set.

Also attempted to fix up a race condition with
_g_object_wait_for_single_ref_do() and its use of GObject toggle
references - for now, just resort to busy waiting, thereby
sidestepping the toggle reference mess altogether.

Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-09-24 14:48:33 -04:00
Claude Paroz
55ef8b0d89 Add translator comments for command parameter translation 2010-09-24 14:48:33 -04:00
Philip Withnall
2cbc1ca723 Bug 630185 — Allow NULL strings in g_quark_try_string()
Allow NULL strings to be passed to g_quark_try_string(), returning a 0 quark
in that case, as per the existing documentation. Closes: bgo#630185
2010-09-24 14:48:33 -04:00
Behdad Esfahbod
0f4fbcf6a8 Fix typo 2010-09-24 14:48:33 -04:00
Colin Walters
3ea03bdfbb gdir: Clarify in documentation that ordering is not defined 2010-09-24 14:48:09 -04:00
Changwoo Ryu
626b2d00c4 Updated Korean translation 2010-09-24 09:25:39 +09:00
Takayuki KUSANO
c23d9cd937 Updated Japanese translation (symbolic link related) 2010-09-24 02:08:12 +09:00
Nicolas Dufresne
b375e9da18 Fix memory leak in SOCKSv5 implementation 2010-09-23 11:50:57 -04:00
Bruno Brouard
c39ce70756 Updated French translation 2010-09-23 08:52:39 +02:00
Chao-Hsiung Liao
95a7b5128a Updated Traditional Chinese translation(Hong Kong and Taiwan) 2010-09-22 19:15:19 +08:00
Ryan Lortie
8d5922ab65 GSocketControlMessage: clean up confusing code
It looks like the deserialisation function in GSocketControlMessage can
potentially leak a reference to the class structure of a
GSocketControlMessage subclass (although the particular code path is
probably never hit).

Clean up the code a bit.

Also, make sure that the GUnixCredentialsMessage type is registered
before attempting deserialisation.

Closes bug #629687.
2010-09-22 07:02:57 -04:00
Ryan Lortie
a7b2995b44 fix argument order for g_date_time_difference()
The names of the arguments in the header file was reversed.

Closes bug #630000
2010-09-22 07:02:57 -04:00
Mattias Põldaru
b384fa5706 [l10n] Updated Estonian translation 2010-09-21 20:56:25 +03:00
Inaki Larranaga Murgoitio
ce0ab35030 Updated Basque language 2010-09-21 14:46:13 +02:00
Michael Kotsarinis
5d0a138da5 l10n: Updated Greek translation for glib 2010-09-20 19:40:53 +03:00
Yaron Shahrabani
5871ce5c1d Updated Hebrew translation. 2010-09-20 15:25:59 +02:00
Takayuki KUSANO
b6cd0a9d09 Updated Japanese translation 2010-09-20 02:02:32 +09:00
Ask H. Larsen
f1ec96e5b1 Updated Danish translation 2010-09-19 18:08:29 +02:00
Wouter Bolsterlee
1afe369f29 Updated Dutch translation by Wouter Bolsterlee 2010-09-19 17:08:25 +02:00
Ryan Lortie
a16db53036 GDateTime: G_GNUC_WARN_UNUSED_RESULT for modifiers
Emmanuele suggested adding G_GNUC_WARN_UNUSED_RESULT to all of the
g_date_time_add_* functions to help deal with the situation where people
may mistakenly believe that these functions are inplace modifiers.
2010-09-18 16:35:26 -04:00
Ryan Lortie
0ac4e9899b bump version to 2.25.18 2010-09-18 15:48:31 -04:00
Ryan Lortie
47f58fc22f release 2.25.17 2.25.17 2010-09-18 15:26:36 -04:00
Ryan Lortie
2ae579d1b5 Fix header cleaup fallout when using system pcre
Using the internal pcre has the side effect of exposing gregex.c to
glib.h.  When we use the system one, we lose that, so we need to
explicitly include the things we use (glist, gatomic, etc..)
2010-09-18 12:56:05 -04:00
Duarte Loreto
916d440a9f Updated Portuguese translation 2010-09-18 10:23:38 -04:00
Ryan Lortie
7aa7418c46 bump version to 2.25.17 2010-09-17 20:48:52 -04:00
Ryan Lortie
3fc5ff4f18 release 2.25.16 2.25.16 2010-09-17 18:32:58 -04:00
Ryan Lortie
0a2f04510e GDateTime: fix a test that fails from time to time
The test fails if it's a different date in the time zone of the machine
running the test than it currently is in UTC.
2010-09-18 01:19:36 +03:00
Ryan Lortie
d647439ff7 branch glib-2-26, dropping GApplication
See
http://mail.gnome.org/archives/desktop-devel-list/2010-September/msg00016.html
for more information.
2010-09-17 13:42:05 -04:00
Ryan Lortie
b4ee303ed6 .gitignore some test cases 2010-09-17 13:26:50 -04:00