8987 Commits

Author SHA1 Message Date
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
Ryan Lortie
5109778e93 .gitignore some sgml 2010-09-17 13:20:17 -04:00
Ryan Lortie
cf73ba47f1 Deal with gtk-doc's insane sensitivty to spaces
...by inserting a few of them.
2010-09-17 13:14:59 -04:00
Ryan Lortie
6b0e31ce48 Clean-up/tweaking of GDateTime and GTimeZone 2010-09-17 11:40:10 -04:00
Emmanuele Bassi
909289c763 datetime: Fix hashing
Convert to the epoch, just like we do when checking for equality, so
that timezones are correctly handled.

https://bugzilla.gnome.org/show_bug.cgi?id=50076
2010-09-17 11:40:10 -04:00
Emmanuele Bassi
3e9fb52214 datetime: Rename g_date_time_printf() to g_date_time_format()
The function does not use any printf() modifiers, so using printf() is a
misnomer.

Prior art: strftime, g_ascii_formatd

https://bugzilla.gnome.org/show_bug.cgi?id=50076
2010-09-17 11:40:10 -04:00
Emmanuele Bassi
4bac6613cf datetime: Update modifiers for DST changes
If a DateTime gets modified to cross the DST state from its previous
state then we want to update the DateTime to compensate for the new
offset.

In other words, if we have a DateTime defined as:

  DateTime({ y: 2009, m: 8, d: 15, hh: 3, mm: 0, tz: 'Europe/London' });

and we add six months to it, the hour must be changed to 60 minutes
behind, as the DST comes into effect.

https://bugzilla.gnome.org/show_bug.cgi?id=50076
2010-09-17 11:40:10 -04:00
Emmanuele Bassi
0746f74036 datetime: Allow setting fractionary seconds in new_full()
Otherwise we'll have to do:

  dt = g_date_time_new_full (Y, M, D, h, m, s, tz);
  tmp = g_date_time_add_usec (dt, usec);
  g_date_time_unref (dt);
  dt = tmp;

With its additional allocations.

https://bugzilla.gnome.org/show_bug.cgi?id=50076
2010-09-17 11:40:10 -04:00
Emmanuele Bassi
67f1e52ce2 datetime: Rework time zone support in constructors
Timezone handling is complicated. Really complicated.

In order to simplify it a little bit, we need to expose the GTimeZone
structure.

First of all, we allow creating time zone information directly from the
offset and the DST state, and then pass it to the g_date_time_new_full()
constructor. We also need to clean up the mess that is UTC-vs.-localtime
for the other constructors.

We also allow creating a GTimeZone from the Olson zoneinfo database
names; a time zone created like this will be "floating": it will just
reference the zoneinfo file - which are mmap()'ed, kept in a cache and
refcounted. Once the GTimeZone has been associated with a GDateTime, it
will be "anchored" to it: the offset will be resolved, as well as the
DST state.

https://bugzilla.gnome.org/show_bug.cgi?id=50076
2010-09-17 11:40:10 -04:00
Dan Winship
bff4ac15d0 g_output_stream_write: fix misleadingly ungrammatical documentation
pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=626866
2010-09-17 10:21:57 -04:00
Žygimantas Beručka
8a7365d892 Updated Lithuanian translation 2010-09-17 03:48:23 +03:00
Gintautas Miliauskas
d6af283f4e Updated Lithuanian translation by Aurimas Cernius. 2010-09-16 22:13:54 +03:00
Petr Kovar
1c658c9c69 Update Czech translation 2010-09-16 01:56:26 +02:00
Petr Kovar
0469782af5 Update Czech translation 2010-09-15 21:43:18 +02:00