10566 Commits

Author SHA1 Message Date
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
Luca Ferretti
5da5a506f9 Updated Italian translation 2011-09-07 00:33:39 +02:00
Ihar Hrachyshka
fea7ccd619 Updated Belarusian translation. 2011-09-07 01:30:06 +03:00
Kjartan Maraas
3054f84aa6 Added Norwegian bokmål translation 2011-09-06 21:50:01 +02:00
Ryan Lortie
9d6b55499f glib 2.29.90 2.29.90 2011-09-06 10:08:34 -04:00
Andika Triwidada
6f6c924b08 Updated Indonesian translation 2011-09-06 16:50:11 +07:00
Ryan Lortie
8a7d33024a gio docs: lots more fixes 2011-09-06 00:31:49 -04:00
Ryan Lortie
e88d735787 gio docs: only include GTlsInteraction once
It was included twice in the gio-docs.xml file.
2011-09-06 00:01:29 -04:00
Ryan Lortie
f333aeb297 gio docs: drop GTimeZoneMonitor from docs 2011-09-05 23:56:33 -04:00
Ryan Lortie
a44b225ae7 Remove enums from gio.types
Only objects and interfaces should go in here.  If enums are in here
then gtk-doc responds by outputting two anchors for the same name (which
results in many warnings being printed).
2011-09-05 23:54:42 -04:00
Ryan Lortie
fb700d7ea3 GDBus object manager example: update -sections.txt 2011-09-05 19:41:16 -04:00
Ryan Lortie
c2e7ef17ac gio docs: ignore private .h files 2011-09-05 19:35:16 -04:00
Ryan Lortie
1f9c189e20 gio docs: don't scan subdirectories
This clears up >50% of the huge warning spew from building GIO docs.
2011-09-05 19:10:04 -04:00
Ryan Lortie
c14a971f32 docs fixups for glib/ 2011-09-05 19:00:11 -04:00
Ryan Lortie
9829d04be8 GObject docs: resolve broken links
Some links were broken due to typos, because functionality was removed
in GLib 2.0 or for various other reasons.  Fix up as many of them as is
reasonable.
2011-09-05 18:46:59 -04:00
Ryan Lortie
b402c3f014 gobject docs: add symbols from GMainLoop boxing 2011-09-05 18:05:05 -04:00
Ryan Lortie
b407086b38 Back out some changes to docs Makefiles
Commit ab0e9dbfa76e056f875e969c0d7b6e133ec75431 introduced some changes
to the documentation Makefiles designed to clean-up the process of
deciding which headers get scanned for the docs.

Unfortunately, the gtk-doc Makefile doesn't use HFILE_GLOB for actually
generating the docs -- only for knowing when it needs to redo the
generation.  Because of this, we need to use IGNORE_HFILES or otherwise
we get hundreds of symbols in the *-unused.txt files.

Revert the changes that that commit made to the docs Makefiles (but
leave the generation of the *-public-headers.txt files in place).
2011-09-05 18:01:39 -04:00
Duarte Loreto
c54bffb9e6 Updated Portuguese translation 2011-09-05 22:30:09 +01:00
Ryan Lortie
88c118aab3 one missed docs fix 2011-09-05 11:39:04 -04:00
Ryan Lortie
ba6d70a99e include 'hmac' in the docs
It wasn't added to glib-docs.sgml, so it wasn't being included in the html.
2011-09-05 11:36:48 -04:00
Ryan Lortie
3b25e975b3 gtk-doc fixups for glib/ 2011-09-05 11:30:58 -04:00
Ryan Lortie
118fa5d502 doc: Remove reference to non-existent #GChildWatch
The g_spawn_ documentation was talking about #GChildWatch, which doesn't
exist.  Refer to g_child_watch_add() instead.
2011-09-05 10:32:51 -04:00
Alexandre Franke
c32c9526ad Fix missing semi-colon after struct definition 2011-09-05 13:22:37 +02:00
Fran Dieguez
2fce869f10 Updated galician translations 2011-09-05 11:55:50 +02:00
Jorge González
66e1240055 Updated Spanish translation 2011-09-05 08:24:30 +02:00
Ryan Lortie
041a086256 pa.po: prefer pa_IN date/time formats
It's clear that the other GDateTime formats in this file correspond with
those in pa_IN, not pa_PK, so prefer those for the newly-added strings
as well.
2011-09-05 00:38:14 -04:00
Ryan Lortie
76c4958906 Populate missing GDateTime format strings
Use the glibc locale database to add GDateTime strings only for those locales
that had not specifically added them for themselves.

Some locales have different translations from what is in the C library and we
leave those alone with this commit.
2011-09-05 00:08:47 -04:00