10659 Commits

Author SHA1 Message Date
Petr Kovar
de5a7de999 Update Czech translation 2011-09-25 23:35:27 +02:00
Gil Forcada
5f1716d65c [l10n]Updated Catalan translation 2011-09-25 23:12:36 +02:00
Kenneth Nielsen
b0f05b807d Updated Danish translation 2011-09-24 14:43:23 +02:00
Aurimas Černius
0a6b6cebab Updated Lithuanian translation 2011-09-24 01:06:06 +03:00
Inaki Larranaga Murgoitio
02d35f6c29 Updated Basque language 2011-09-23 19:05:44 +02:00
Dan Winship
fa82698c53 gio-2.0.pc.in: drop stray reference to libasyncns
gio-2.0.pc's Libs.private was still using @LIBASYNCNS_LIBADD@, which
was no longer being substituted to anything and so broke "pkg-config
--static". Fix it to be @NETWORK_LIBS@ instead.

https://bugzilla.gnome.org/show_bug.cgi?id=659889
2011-09-23 07:50:00 -04:00
Manoj Kumar Giri
14a0e0b6fa Updated Oriya Translation 2011-09-23 16:21:33 +05:30
Chun-wei Fan
21598c7466 Bug 659794: Define S_ISREG when it is not available
Not all compilers define S_ISREG on Windows, so define it in such
situations
2011-09-23 11:43:07 +08:00
Chun-wei Fan
5ecca0e553 Revert "gmappedfile.c: Define S_IFREG on Win32 when it's not available"
This reverts commit 0cccd8d3c82c56285ab55a90aef11d395ba78131.
2011-09-23 11:43:06 +08:00
Chun-wei Fan
10c4ca4db0 gmappedfile.c: Define S_IFREG on Win32 when it's not available
Make a workaround for S_IFREG in gmappedfile.c on Windows as it may not be
available for a given compiler on that platform
2011-09-23 11:43:04 +08:00
Emmanuele Bassi
4b1bf18c04 Fix annotations for source/target in g_object_bind_property_*
We use gpointer for convience of the C API users, but introspection
users will not like it.

https://bugzilla.gnome.org/show_bug.cgi?id=659838
2011-09-22 17:59:12 +01:00
Manoj Kumar Giri
a9b597b6a0 Updated Oriya Translation 2011-09-22 19:50:42 +05:30
Nilamdyuti Goswami
403c352d44 Update Assamese translation 2011-09-22 11:56:39 +02:00
Ryan Lortie
39738f481a gunixmounts: exempt entries with "none" mountpoint
We ignore entries with mountpoint of "swap" and "ignore".  Add "none" to
that list, since Debian uses it.

Probably we should move to using our already-existing internal list of
things to ignore, but this patch is more minimally intrusive for now.

https://bugzilla.gnome.org/show_bug.cgi?id=654563
2011-09-21 12:09:17 -04:00
Antoine Jacoutot
7166d26918 gunixmounts: Fix compilation on BSD
Commit afa82ae805f9c8bb875a3f863a7b4669953f159f introduced a compilation
regression on BSD systems that use the sysctl(3) interface; we need to
declare the buffer len in _g_get_unix_mount_points()
BZ #659528
2011-09-21 11:03:06 -04:00
David Zeuthen
b1ba69ccee GDBusObject{Proxy,Skeleton}: Prefix properties with g- to avoid collisions
Otherwise we might collide with an interface called Connection.

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

This is for the same reason that GDBusProxy has its properties
prefixed with g-.

Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-09-21 10:51:41 -04:00
Xavier Claessens
590fc289b3 gdbus-codegen: prepend arg_ to method/signal arg names
This is to avoid shadow declaration warning in the case an arg name
is "time" for example.

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

Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-09-21 07:52:16 -04:00
David Zeuthen
630886f84d gdbus-codegen: Clarify how naming and Ugly_Case handling works
Basically, move some paragraphs around.

Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-09-21 07:21:16 -04:00
David Zeuthen
4f5f8bc28a gdbus-codegen: Update man page to reflect how --annotate actually works
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-09-21 07:21:03 -04:00
Xavier Claessens
b13bf5dd74 gdbus-codegen: Fix build errors in generated code
https://bugzilla.gnome.org/show_bug.cgi?id=659646
2011-09-21 07:20:47 -04:00
Matej Urbančič
403453a4a3 Updated Slovenian translation 2011-09-20 20:34:12 +02:00
Matej Urbančič
1225b10e5c Updated Slovenian translation 2011-09-20 20:29:33 +02:00
Cosimo Cecchi
24dc57e0f9 timeval: add introspection annotations to g_time_val_from_iso8601()
The GTimeVal argument is missing an (out) annotations.

https://bugzilla.gnome.org/show_bug.cgi?id=658692
2011-09-20 13:05:37 -04:00
Sweta Kothari
8d4cc264fa Updated Gujarati Translations 2011-09-20 14:12:38 +05:30
David Zeuthen
0d04b3449e GDBusObjectManagerServer: Add test for export_uniquely() method
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-09-19 17:34:06 -04:00
Matthew Barnes
39ae9ee5e8 GDBusObjectManagerServer: Use correct object path in export_uniquely() method
In registration_data_export_interface(), the object_path is obtained using:

object_path = g_dbus_object_get_object_path (G_DBUS_OBJECT (data->object));

But when exporting an object uniquely, the object_path is not assigned
to the GDBusObject until after all the interfaces are exported.
Therefore, registration_data_export_interface() is trying to export
the interface on the non-unique object path, which can lead to
run-time errors if an object already exists on that path.

Instead, registration_data_export_interface() should be passed the
object_path explicitly, as is done in
g_dbus_object_manager_server_export_unlocked().

Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-09-19 17:33:58 -04:00
Philip Withnall
7b812c4343 Don't close stream twice when splicing
Ensure that the output/target stream in a g_output_stream_splice_async()
operation is marked as closed if G_OUTPUT_STREAM_SPLICE_CLOSE_TARGET is
passed to g_output_stream_splice_async(). This removes the possibility of
local FDs being closed twice because the stream's not marked as closed.

This is implemented by calling g_output_stream_close() from within
g_output_stream_splice_async() instead of calling the stream's close_fn()
directly.

Closes: bgo#659324
(cherry picked from commit fe27bf003764e453cd15cab67e8a99fcda84db1d)
2011-09-19 10:15:25 +02:00
Мирослав Николић
c6df60f912 Updated Serbian translation 2011-09-19 03:01:58 +02:00
Mario Blättermann
649fcd10f1 [l10n] Updated German translation 2011-09-18 22:15:11 +02:00
Alexander Shopov
660ffd4711 Updated Bulgarian translation 2011-09-18 10:36:42 -04:00
Ryan Lortie
49461cbbf7 glib 2.29.92 2.29.92 2011-09-18 10:10:31 -04:00
Ryan Lortie
9663e9c957 GSettingsBackend: emit changes to correct thread
When g_settings_apply() is called on a delayed settings backend and
there is a D-Bus error when communicating with dconf-service, recent
versions of the dconf GSettingsBackend call a function in GLib that
improperly delivered the signal directly instead of using
g_main_context_invoke().

This patch fixes this function to route in the same way as the others so
that the signal is dispatched in the proper GMainContext.
2011-09-18 09:39:31 -04:00
Matthias Clasen
56891ca4ee Remove redundant checks
g_set_error() handles error == NULL, so no need to check.
Patch by Ignacio Casal Quinteiro.

https://bugzilla.gnome.org/show_bug.cgi?id=640975
2011-09-17 20:28:58 -04:00
Matthias Clasen
500202a854 GMappedFile: return an error when trying to map a device
Previously, we were returning an empty buffer for all filenames
where fstat() gives a size of 0. But this is only appropriate
for regular files.

Also improve the documentation around this issue. Based on a
patch by Ryan Lortie.
2011-09-17 19:58:28 -04:00
Ryan Lortie
817466f9a6 GMappedFile: fail when mapping a device file
mmap() fails on zero-sized files, so we previously had a special case to
avoid calling it in that case.  Unfortunately, this had the side effect
of causing us to fail to notice that we were attempting to mmap() a
device node.

Modify the special-casing to only apply in the case that we're dealing
with a normal file.

https://bugzilla.gnome.org/show_bug.cgi?id=659212
2011-09-17 19:43:05 -04:00
Aron Xu
62ff5cd9f2 Update Simplified Chinese translation. 2011-09-17 16:23:55 +00:00
Jiro Matsuzawa
568907c8d3 Updated Japanese translation 2011-09-17 11:30:01 +09:00
David Zeuthen
0229a268d5 gdbus-codegen: Support Ugly_Case for given C namespace
https://bugzilla.gnome.org/show_bug.cgi?id=658976

Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-09-16 16:02:31 -04:00
David Zeuthen
6120f2922e gdbus-codegen: Single letter namespaces get dropped from symbol names
https://bugzilla.gnome.org/show_bug.cgi?id=659082

Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-09-16 15:21:03 -04:00
Simon McVittie
493b6e2f43 _g_dbus_worker_new: hold a ref until we have done the initial read
Otherwise, we could use-after-free the GDBusWorker, if its last-unref
is immediately after _g_dbus_worker_new returns (before the worker thread
does its initial read).

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=651268
Bug-NB: NB#271520
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-09-16 12:05:19 -04:00
Simon McVittie
9f69e365dd GDBusWorker: as a precaution, access 'stopped' boolean atomically
This member is written in _g_dbus_worker_stop from arbitrary threads, and
read by the worker thread, so it should be accessed atomically.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=651268
Bug-NB: NB#271520
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-09-16 12:05:10 -04:00
Simon McVittie
bcb557ce37 Regression test for closing a stream, slowly, while a message is queued
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=651268
Bug-NB: NB#271520
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-09-16 12:05:03 -04:00
Simon McVittie
9ebf9285d2 GDBusWorker: annotate more functions with lock/pending state
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=651268
Bug-NB: NB#271520
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-09-16 12:04:55 -04:00
Simon McVittie
fff591b677 GDBusConnection: delegate to the worker to close the stream
We can't safely close the output part of the I/O stream until any
pending write or flush has been completed. In the worst case, this could
lead to an assertion failure in the worker (when the close wins the
race) or not closing the stream at all (when the write wins the race).

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=651268
Bug-NB: NB#271520
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-09-16 12:04:46 -04:00
Simon McVittie
068160789a GDBusWorker: combine num_writes_pending with flush_pending
num_writes_pending was a counter, but it only took values 0 or 1, so make
it a boolean: it would never make sense to be trying to write out two
messages at the same time (they'd get interleaved).

Similarly, we can never be writing and flushing at the same time (that'd
mean we were flushing halfway through a message, which would be pointless)
so combine it with flush_pending too, calling the result output_pending.

Also assert that it takes the expected value whenever we change it,
and document the locking discipline used for it, including a subtle
case in write_message_in_idle_cb where it's not obvious at first glance
why we don't need the lock.

(Having the combined boolean at the top of the block of write-related
struct members improves struct packing on 64-bit platforms, by packing
read_num_ancillary_messages and output_pending into one word.)

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=651268
Bug-NB: NB#271520
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-09-16 12:04:38 -04:00
Yuri Myasoedov
577e4ec785 Updated Russian translation 2011-09-14 21:26:49 +04:00
Tomas Bzatek
9197e288ec gdbus-codegen: Fix segfault when remote property is invalidated
The 'key' variable is no longer valid outside the cycle, owned and
probably already freed by GVariant. This causes apps to segfault
when proxy is constructed and a property on remote d-bus service
changes (actually is invalidated). Looks like a typo anyway.

https://bugzilla.gnome.org/show_bug.cgi?id=659070
2011-09-14 19:02:33 +02:00
dmustieles
219f89057b Updated Spanish translation 2011-09-14 17:32:24 +02:00
Antonio Fernandes C. Neto
64ff1fc361 Updated Brazilian Portuguese translation. 2011-09-14 09:05:16 -04:00
I Felix
f6faa09548 Updated Tamil Translations 2011-09-13 16:04:42 +05:30