9727 Commits

Author SHA1 Message Date
Cédric Valmary
59fa0ba3ce Update Occitan translation 2016-10-12 08:22:59 +00:00
Balázs Úr
4b01a3ae63 Updated Hungarian translation 2012-12-27 20:30:26 +01:00
Hans Breuer
ab222a344c win32: Update msvc infrastructure for gdk-pixbuf split and cairo-gobject 2012-07-06 18:15:32 +02:00
Hans Breuer
1a19e05df5 win32: Updated msvc build files
Now it's possible again to build on the command line again.
Lowest tested compiler version is msvc6 (aka _MSC_VER 1200)
2012-07-06 18:11:46 +02:00
Hans Breuer
595a0cff93 win32: don't use G_DEFINE_TYPE_WITH_CODE without code
Using just G_DEFINE_TYPE make it compile with msvc6, too.
2012-07-06 18:07:09 +02:00
David Zeuthen
2fa0f01e90 GUnixFileMonitor: Clean up /proc/mounts monitoring
Most suggestions from Colin Walters <walters@verbum.org>.

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

Signed-off-by: David Zeuthen <davidz@redhat.com>
2012-05-09 13:58:51 +09:00
David Zeuthen
eb554bc044 GUnixFileMonitor: Use /proc/mounts for monitoring mount changes
On recent Linux distros /etc/mtab is just a symlink to /proc/mounts
and GFileMonitor does not work there because of how the kernel conveys
that the file changes.

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

Signed-off-by: David Zeuthen <davidz@redhat.com>
2012-05-09 13:58:51 +09:00
Marek Černocký
559912c07c Revert "Updated Czech translation"
This reverts commit c5877e15ec739264633e40290e107e732a460424.

Commited to wrong branch
2012-03-26 14:57:26 +02:00
Marek Černocký
c5877e15ec Updated Czech translation 2012-03-26 14:47:13 +02:00
Peter Kjellerstedt
7c8576accb Do not fail unit test due to gdb abbreviating strings
gdb by default will only print strings up to 200 characters. After that
it abbreviates them. This affects the run-assert-msg-test.sh script if
the path to the glib installation is too long (in our case it was 133
characters, 132 would still have worked...)

By having gdb execute "set print elements 0" before printing the assert
string, the limit on maximum number of characters to print is set to
unlimited.

Signed-off-by: Peter Kjellerstedt <pkj@axis.com>

https://bugzilla.gnome.org/show_bug.cgi?id=670218
2012-02-18 19:22:14 -05:00
Javier Jardón
b92746b01c docs: Add win32 gio specific api to the docs 2012-02-07 16:05:09 +01:00
Simon McVittie
18f003303a g_array_free, g_ptr_array_free: decrement refcount if not the last ref
foo_free is conceptually "worth" one unref; not decrementing the
refcount here means the GArray or GPtrArray wrapper (but not its
contents) would leak in the following call sequence:

    p = g_ptr_array_new ();
    g_ptr_array_ref (p);
    g_ptr_array_free (p, TRUE);
    g_ptr_array_unref (p);

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=666113
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
2012-01-16 18:03:37 +00:00
Simon McVittie
700558425a GArray, GPtrArray: factor out the actual freeing
Depending how the array is freed, we may want to free the underlying
array (the "segment"), the struct wrapper or both.

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=666113
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
2012-01-16 18:03:36 +00:00
Simon McVittie
f9e865a29d g_key_file_get_string_list: don't leak the pieces on error
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=666113
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
2012-01-16 18:03:36 +00:00
Simon McVittie
b39798267d g_strcompress: check that source is non-NULL rather than just crashing
Calling this function with a NULL argument is considered to be invalid,
but one of the regression tests does it anyway (to watch it crash), which
seems a good indication that it's expected to be somewhat common.
Let's check it rather than segfaulting.

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=666113
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
Reviewed-by: Matthias Clasen <mclasen@redhat.com>
2012-01-16 17:57:33 +00:00
Simon McVittie
f65c741db4 GKeyFile: free group comments when the group is removed
These were leaked. Valgrind was sad.

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=666113
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
2012-01-16 17:57:33 +00:00
Simon McVittie
d98aceab09 GDBusWorker: tolerate read errors while closing
My previous fix for GNOME#662100 was incomplete: it seems that with some
timings, the stream can be closed with an async read in-flight. This
can make the read fail immediately with G_IO_ERROR_CLOSED instead of
becoming cancelled.

This happens reliably on an embedded device, and rarely on my laptop;
repeating the test 100 times in quick succession reliably reproduces
the bug on my laptop.

It seems as though what we really want is to ignore read errors, once
we've established that we want to close the connection anyway - this
means that after asking to close, you're immune to exit-on-close,
which seems like a good rule.

An additional subtlety is that continuing to read after we know we
want to close is still required, otherwise we'll never emit ::closed.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662100
Bug-NB: NB#287088
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Colin Walters <walters@verbum.org>
2011-11-11 16:06:30 +00:00
Simon McVittie
8a7bf8c283 GDBusWorker: debug on read errors if transport debugging is enabled
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662100
Bug-NB: NB#287088
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Colin Walters <walters@verbum.org>
2011-11-11 16:06:27 +00:00
Simon McVittie
5949eb9806 gdbus-exit-on-close test: don't leak a variant
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662100
Bug-NB: NB#287088
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Colin Walters <walters@verbum.org>
2011-11-11 16:06:23 +00:00
Simon McVittie
0ed2e786cc gdbus-exit-on-close test: optionally be more verbose for debugging
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662100
Bug-NB: NB#287088
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Colin Walters <walters@verbum.org>
2011-11-11 16:06:18 +00:00
Simon McVittie
19d1db095d GDBusWorker: backport explanatory comment about G_IO_ERROR_CANCELLED from 2.30
This was mistakenly omitted from the 2.28 version.

(cherry picked from commit d65b80fb547ef3eed80ae970f858e7d110d90b40)

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662100
Bug-NB: NB#287088
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Colin Walters <walters@verbum.org>
2011-11-11 16:06:13 +00:00
Tim-Philipp Müller
e72314f369 tests: fix glib_translations_work()
If setlocale() to our test locale fails, translations
won't work either.

https://bugzilla.gnome.org/show_bug.cgi?id=654017
2011-10-18 17:08:13 +01:00
Simon McVittie
21b10392a3 gdbus-non-socket test: avoid use of a GMainContext across a fork
See https://bugzilla.gnome.org/show_bug.cgi?id=658999 for why this would
be bad.

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2011-10-18 16:41:17 +01:00
Simon McVittie
9bf965e81f gdbus-exit-on-close test: cover more possibilities
We didn't previously test anything except the implicit default of TRUE.
Now we test implicit TRUE, explicit TRUE, explicit FALSE, and
disconnecting at the local end (which regressed while fixing Bug #651268).

Also avoid some questionable use of a main context, which fell foul of
Bug #658999 and caused this test to be disabled in master.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662100
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2011-10-18 16:41:15 +01:00
Simon McVittie
ac2c49f313 GDBusWorker: if a read was cancelled it means we closed the connection
This was a regression caused by my previous work on GDBusWorker thread-safety
(Bug #651268). The symptom is that if you disconnect a GDBusConnection
locally, the default implementation of GDBusConnection::closed
terminates your process, even though it shouldn't do that for
locally-closed connections; this is because GDBusWorker didn't think a
cancelled read was a local close.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=662100
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2011-10-18 16:41:12 +01:00
Aputsiaq Janussen
4cf6ec036e Updated Danish translation 2011-09-30 10:07:54 +02:00
Simon McVittie
f021522b96 _g_dbus_worker_new: ref worker until after _g_dbus_worker_thread_begin_func
Otherwise, if the caller of _g_dbus_worker_new immediately unrefs the
worker, calling _g_dbus_worker_thread_begin_func in the worker thread
could be a use-after-free.

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
e128c045eb 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:07:04 -04:00
Simon McVittie
407b4cf8c4 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:07:04 -04:00
Simon McVittie
2e1b3cd90b 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:07:04 -04:00
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