9697 Commits

Author SHA1 Message Date
Simon McVittie
c9282849b6 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:07:04 -04:00
Simon McVittie
7bbc7727d4 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:07:04 -04:00
Josselin Mouette
8091e2cadb 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:27 +02:00
Adorilson Bezerra
6dd998e231 Updated Brazilian Portuguese translation. 2011-09-03 18:07:30 -04:00
Martin Srebotnjak
2d8e1bd838 Updated Slovenian translation 2011-09-02 20:45:22 +02:00
Alexandre Franke
3e0d103f94 Update French translation 2011-08-31 16:27:52 +02:00
Chun-wei Fan
9def00025f Update VS Readme.txt's again...
Sorry, copied the wrong text for these files... redid this.
2011-08-31 13:07:24 +08:00
Chun-wei Fan
90f3bc5090 Update Win32 and VS Readme files
Tell people about the GNOME Live! page that outlines building
GLib and its dependencies with Visual C++.
2011-08-31 13:04:33 +08:00
Fran Dieguez
4bf20f1b3a Updated galician translations 2011-08-28 17:13:42 +02:00
Мирослав Николић
1d96c9f3b6 Updated Serbian translation 2011-08-23 19:04:01 +02:00
Chun-wei Fan
9ae64c9cbe Update GLib Visual C++ projects
Define USE_SYSTEM_PCRE for all configurations which uses the PCRE that was
already built and "installed" beforehand (i.e. the *_ExtPCRE
configurations) so that the compilation will not pick up the GLib-bundled
pcre.h when one wants to use the PCRE "installation" on his/her system.
2011-08-23 00:30:33 +08:00
Gil Forcada
b4a4ad3a1a [l10n]Minor update on Catalan translation 2011-08-20 20:21:51 +02:00
Mario Blättermann
6f0a627ae0 [l10n] Updated German translation 2011-08-05 22:24:11 +02:00
Daniel Mustieles
36b0b48d1b Updated Spanish translation 2011-08-04 09:33:34 +02:00
David Zeuthen
012b95fe48 GDBusConnection: Only apply exit-on-closed semantics if properly initialized
Otherwise there is no point in gracefully handling the error...

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

Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-08-01 12:07:35 -04:00
Daniel Nylander
804a5c70cb Updated Swedish translation 2011-07-29 09:43:48 +02:00
Piotr Drąg
84958787b9 Updated Polish translation 2011-07-28 10:07:56 +02:00
Marek Černocký
a5e0334f22 Updated Czech translation 2011-07-27 23:01:58 +02:00
Nicolas Dufresne
d4433e6ae8 Added TLS PEM parser unit test 2011-07-27 16:20:14 -04:00
Nicolas Dufresne
3a7fad0313 Rework PEM parsing to not be order dependent
Some valid PEM file would not work because the private key was put
before the certificate.
2011-07-27 16:20:08 -04:00
Chun-wei Fan
f24e15b2dc Updated glib-zip.in a bit further
Missed the bin/gsettings.exe part (corrected from bin/gsettings.)
2011-07-26 23:22:18 +08:00
Dieter Verfaillie
ec466b4d51 Update glib-zip.in 2011-07-26 13:20:05 +02:00
Chun-wei Fan
79c759756f Update Windows READMEs
Tell people not to compile GLib in paths containing spaces.
2011-07-25 11:47:27 +08:00
Tommi Vainikainen
829be7de48 Updated Finnish translation 2011-07-18 00:46:25 +03:00
Chun-wei Fan
eb78d63ffe Update VS2010 README.txt
This file should have Windows CRLF EOL as well...
2011-06-29 13:57:47 +08:00
Chun-wei Fan
225280e959 Re-attempt to correct EOL on VS2010 solution
This time I realized that I needed to set autocrlf=false on my Windows side
... ugh...

This is one of those files that must have CRLF line endings to work
correctly :|
2011-06-29 12:38:57 +08:00
Мирослав Николић
3d78d75b3e Updated Serbian translation 2011-06-24 20:53:06 +02:00
Chun-wei Fan
0588b6ff2c Refine Visual Studio projects
-Reinstate the temporarily removed glib.sln file for VS10--make its EOL
 in the DOS/Windows format so that it will not end up with "Unrecognized
 Visual Studio Version" in Windows.

-Updated GLib projects to set the GLib DLL/LIB files to be output to
 <Debug or Release>\<Win32 or x64>\bin for all configurations

-Updated property sheets to copy the GLib DLL/LIB for all configurations

-Update VS9 property sheet to seperate Intermediate directories for all
 projects as well to reduce warnings/errors of being unable to write the
 PDB and related files as they are in use
2011-06-24 10:54:31 +08:00
Chun-wei Fan
ad8e8c22da Temporarily remove build/win32/vs10/glib.sln
-To fix the line endings here...
2011-06-24 10:43:46 +08:00
Chun-wei Fan
393e128801 Visual C++ 2010 projects updates
Consolidate my previous commit into the property file... should have
realized sooner.
2011-06-20 11:46:33 +08:00
Chun-wei Fan
9b275498f1 Update Visual C++ 2010 Projects
-Seperate intermediate directories for each project to avoid intermittent
 MSBuild errors that a build log cannot be written while in use, and
 update the property sheet as necessary.
-Minor cleanups of uneeded tags in the projects/properties
2011-06-20 11:26:44 +08:00
Chun-wei Fan
e2074a6342 Update gsettings/glib-compile-schemas VS Projects
These tools require the use of GModule headers also, so update the include
directories so that the correct gmodule.h will be included instead of the
system-installed version.
2011-06-18 17:58:57 +08:00
Murray Cumming
38220cd31d GDBusServer: Documentation: Improvements.
Provide a fuller description and lead people away if they arrived
here just looking for a way to provide a regular D-Bus service.
2011-06-15 09:35:53 +02:00
Daniel Nylander
2a6e652dae Updated Swedish translation 2011-06-12 20:25:51 +02:00
Gil Forcada
6d78b56d4f [l10n]Updated Catalan translation 2011-06-11 20:34:55 +02:00
Matej Urbančič
38446ab65c Updated Slovenian translation 2011-06-10 20:09:31 +02:00
Mario Blättermann
24d811dd54 [l10n] Updated German translation 2011-06-10 11:16:48 +02:00
Alexander Shopov
7b4155e264 Updated Bulgarian translation 2011-06-09 07:02:20 +03:00
Jorge González
21a13782c2 Updated Spanish translation 2011-06-08 23:11:16 +02:00
Javier Jardón
a635e3be65 gconverter: Improve cross-references 2011-06-08 16:30:06 +01:00
Marek Černocký
fe40636a87 Updated Czech translation 2011-06-07 08:09:48 +02:00
Chun-wei Fan
97901c0c94 Update config.h.win32.in for VS 2010
Missed one type that is defined in the VS2010-shipped stdint.h
2011-06-07 10:37:32 +08:00
Chun-wei Fan
59aa7a3ec5 Update config.h.win32.in
-Make file contents more like the current config.h(.in)
-vsnprintf is shipped with VS 2008+
2011-06-07 10:21:18 +08:00
Chun-wei Fan
34f35595c8 Update the year in the *.rc.in files
Sorry this change came a bit late...
2011-06-07 08:53:11 +08:00
Fran Diéguez
812b4a1951 Updated Galician translations 2011-06-06 13:07:33 +02:00
Piotr Drąg
bfebba8370 Updated Polish translation 2011-06-06 07:37:08 +02:00
Matthias Clasen
736128366e Bump version 2011-06-05 20:10:21 -04:00
Matthias Clasen
d9f9e02777 Update NEWS 2.28.8 2011-06-05 19:24:01 -04:00
Matthias Clasen
b5f53f4bab Fix parameter documentation for many functions
Use the opt-out mechanism introduced in gtk-doc 1.16 to work
around problems with the _utf8 renaming games that the win32
port is playing in our headers.

https://bugzilla.gnome.org/show_bug.cgi?id=638449
2011-06-05 13:28:58 -04:00
Paolo Bonzini
b9cf1c3cfe avoid quadratic behavior of GMainLoop when all fd's have the same priority
https://bugzilla.gnome.org/show_bug.cgi?id=640518
2011-06-05 13:28:33 -04:00