10592 Commits

Author SHA1 Message Date
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
I Felix
14173c7e38 Updated Tamil Translations 2011-09-13 15:59:05 +05:30
Rajesh Ranjan
5da87ff20f hindi update 2011-09-13 14:13:42 +05:30
Daniel Nylander
2fa3d53cf4 Updated Swedish translation 2011-09-12 17:51:05 +02:00
Matthias Clasen
8c8f8e56de Revert "Fix default setting generation in g_desktop_app_info_set_as_last_used"
This reverts commit 62a681453993e8618dd5fc41e987fa7308d617b0.
2011-09-11 23:29:40 -04:00
Rudolfs Mazurs
26fde7b8c0 Updated Latvian translation. 2011-09-11 23:50:30 +03:00
Ryan Lortie
5f64e73990 GType tutorial: clarify class struct initialisation
Make the information on how the class structure is initialised less
confusing to first-time readers.
2011-09-11 15:44:39 -04:00
Jorge González
511c3ebe76 Updated Spanish translation 2011-09-11 11:05:15 +02:00
Gabor Kelemen
1a42b8fa8f Updated Hungarian translation 2011-09-10 14:41:47 +02:00
Gabor Kelemen
598a8c82c0 Updated Hungarian translation 2011-09-10 14:40:21 +02:00
Josselin Mouette
62a6814539 Fix default setting generation in g_desktop_app_info_set_as_last_used
* Do not ignore the system default
 * Do not exclude the last used being set from the default list

This fixes the default applications dialog in control-center.

https://bugzilla.gnome.org/show_bug.cgi?id=658188
2011-09-10 08:30:04 +02:00
Piotr Drąg
1d977a5a9c Updated Polish translation 2011-09-08 21:07:54 +02:00
Piotr Drąg
e6907824d7 Updated Polish translation 2011-09-08 20:44:03 +02:00
Arash Mousavi
433bc64838 Updated Persian translaion 2011-09-08 22:30:44 +04:30
A S Alam
ee1709af05 update PunjabiTranslation 2011-09-08 21:09:38 +05:30
Alexandre Franke
2f090dd431 Update French translation 2011-09-08 17:30:01 +02:00
Arash Mousavi
1a4b2cc512 Updated Persian translaion 2011-09-08 19:41:56 +04:30
Bruce Cowan
e7a5a53c39 Updated British English translation 2011-09-07 16:58:57 +01:00