14967 Commits

Author SHA1 Message Date
Cédric Valmary
042c5f6edb Update Occitan translation 2016-10-12 08:13:34 +00:00
Ryan Lortie
99befa31f8 GLib 2.40.2 2.40.2 2014-09-22 13:51:43 -04:00
Antoine Jacoutot
2e1f170096 platform_get_argv0: drop unneeded headers for OpenBSD
And properly set the size of len.
There is also no need for realloc(), g_malloc0 will do just fine.

https://bugzilla.gnome.org/show_bug.cgi?id=728280
2014-09-21 12:11:21 -04:00
Antoine Jacoutot
b97e6454f7 build: also unset LIBS when LDFLAGS is unset
On OpenBSD, libintl is installed under /usr/local/lib. When configure
checks unset LDFLAGS, LIBS should also be unset otherwise we end up with
-lintl which cannot be found resulting to the compile check to fail.

https://bugzilla.gnome.org/show_bug.cgi?id=727939
2014-09-20 16:37:03 -04:00
Ryan Lortie
24d26e0709 configure.ac: fix nested functions in checks
This is a combination of these commits from master:

  9362a1b2d987125a8aa0723b916d29aaaece329a
  20e709d8b92e28d162c78b147afe4040e3a48b85
  e15ba53cdab91587721a38efa4eeea9acf871860
2014-09-20 16:33:58 -04:00
Ryan Lortie
7673d6f881 GLib 2.40.1 2.40.1 2014-09-20 10:33:08 -04:00
Ryan Lortie
658ba94e03 gvariant tests: workaround libc/compiler "issue"
memcmp() is declared by glibc as follows:

  /* Compare N bytes of S1 and S2.  */
  extern int memcmp (const void *__s1, const void *__s2, size_t __n)
       __THROW __attribute_pure__ __nonnull ((1, 2));

despite the fact that it is valid to call it with a null pointer if the
size is zero.

gcc 4.9.0 contains a new optimisation that sees that we pass a pointer
to this function and concludes that it certainly must not be null,
removing a later check and thereby causing a crash.

We protect the invocation of memcmp() with a condition to prevent gcc
from making this false assumption (arguably under wrong advice from
glibc).
2014-09-20 10:26:47 -04:00
Thomas Haller
938a468acf gmacros.h: add G_GNUC_*_IGNORE_DEPRECATIONS macros for clang
https://bugzilla.gnome.org/show_bug.cgi?id=734126

Signed-off-by: Thomas Haller <thaller@redhat.com>
(cherry picked from commit 35eaf037bdfca985abf5d349e7355f1d2ed9c77b)
2014-08-22 21:03:29 +02:00
Christian Kirbach
eff9429ed4 Updated German translation 2014-08-15 17:56:35 +02:00
Christian Kirbach
6038227124 Updated German translation 2014-08-15 09:47:50 +00:00
Matej Urbančič
35b94d49c6 Updated Slovenian translation 2014-08-06 14:15:25 +02:00
Martin Srebotnjak
f1e2f6dfbf Updated Slovenian translation 2014-08-05 21:03:19 +02:00
Ignacio Casal Quinteiro
c047a008ea gspawn-win32: do not rely on __argc and __argv global vars.
Since we are getting passed Unicode values these global vars
might not have the correct value. Instead always get the wide arguments
and convert them to utf8 to use them.

https://bugzilla.gnome.org/show_bug.cgi?id=733146
2014-07-14 15:00:06 +02:00
Ryan Lortie
73bd87faa1 GActionEntry: improve documentation
Document that giving %NULL for the activate handler is supported since
GLib 2.40.  We documented this on GSimpleAction itself (where the
default handler functionality is implemented) but expecting the user to
dig that up is asking a bit much.

Also, add some more explicit documentation about the conditions under
which each field is expected to be filled in.

https://bugzilla.gnome.org/show_bug.cgi?id=732429
2014-06-29 11:35:50 -04:00
Chun-wei Fan
2efc705675 MSVC 2010+ Projects: Update "Installation" Process
Currently, due to the way that Visual Studio 2010+ projects are handled,
the "install" project does not re-build upon changes to the sources, as it
does not believe that its dependencies have changed, although the changed
sources are automatically recompiled.  This means that if a part or more
of the solution does not build, or if the sources need some other fixes
or enhancements, the up-to-date build is not copied automatically, which
can be misleading.

Improve on the situation by forcing the "install" project to trigger its
rebuild, so that the updated binaries can be copied.  This does trigger an
MSBuild warning, but having that warning is way better than not having an
up-to-date build, especially during testing and development.
2014-06-09 10:36:11 +08:00
Emmanuele Bassi
ca28ab2d07 docs: Replace <function> XML tag with back ticks
https://bugzilla.gnome.org/show_bug.cgi?id=731050
2014-06-06 16:39:36 -05:00
Emmanuele Bassi
f1933d9251 docs: Replace <structname> tags with back ticks
https://bugzilla.gnome.org/show_bug.cgi?id=731050
2014-06-06 16:39:22 -05:00
Chun-wei Fan
321b827d6b gio/gtestdbus.c: Fix write_config_file() for Windows
Windows does not like g_unlink() to be called on files whose file
descriptor is still open, so doing that would cause a permission
denied error.  Since the fd is not used in that function after
acquiring the temp file, close it earlier before
g_file_set_contents(), so that it can complete successfully.

This fixes a number of GTK+ tests on Windows.

https://bugzilla.gnome.org/show_bug.cgi?id=719344
2014-05-12 22:15:44 +08:00
Colin Walters
3ce5a53bb5 g_file_copy: Don't set GError when we intend to ignore errors
For better or worse, the current g_file_copy intention was to ignore
errors copying metadata, but we still set the GError, while returning
TRUE.

https://bugzilla.gnome.org/show_bug.cgi?id=727559
2014-05-07 12:59:17 +01:00
Pau Iranzo
08add0b5ba [l10n] Update Catalan translation 2014-05-02 12:41:30 +02:00
Matej Urbančič
750b9ecb04 Updated Slovenian translation 2014-04-28 21:47:29 +02:00
Matej Urbančič
1f6f3a7e3b Updated Slovenian translation 2014-04-28 21:45:09 +02:00
Matej Urbančič
0c8382f2de Updated Slovenian translation 2014-04-28 21:34:06 +02:00
Juan Pablo Ugarte
8b49ec639c Added type check to GPermission public functions. 2014-04-25 21:33:44 -03:00
Wim Taymans
a183ffbee1 networkaddress: fix parsing of uri with @ after authority
Make sure that the @ sign is inside the authority part before attempting
to parse the userinfo. We do this by checking if the @ sign comes before
any of the possible authority delimiters.
Add unit test to verify parsing of ftp://ftp.gnome.org/start?foo=bar@baz

https://bugzilla.gnome.org/show_bug.cgi?id=726040
2014-04-25 18:13:05 -04:00
Philip Withnall
466076bfd6 gresolver: Ensure GThreadedResolver always sets an error if resolution fails
It was previously possible for GThreadedResolver to return an empty list
and no error in response to a g_resolver_lookup_by_name() call, if it
happened that all the addresses returned by getaddrinfo() could not be
converted from native addresses to GSocketAddresses.

Fix that by setting a G_RESOLVER_ERROR_NOT_FOUND if the returned list is
empty.

https://bugzilla.gnome.org/show_bug.cgi?id=728776
2014-04-25 09:53:21 +01:00
Philip Withnall
4841dc2b8b gresolver: Document that GResolver lists are non-empty on success
The documentation previously wasn’t clear about whether the GResolver
methods could return an empty list and no error. On balance, this seems
like a bad idea, and GResolver should commit to always return a
non-empty list, or an error (which should be G_RESOLVER_ERROR_NOT_FOUND
if the list would otherwise be empty).

https://bugzilla.gnome.org/show_bug.cgi?id=728776
2014-04-25 09:52:16 +01:00
Volker Sobek
5dedf6927f docs: Remove <!-- --> comment before plural s
These did show up in the html. Since symbol names are checked for a
trailing plural s when generating the docs, the links stay functional
after removing these comments.

https://bugzilla.gnome.org/show_bug.cgi?id=728380
2014-04-24 13:51:50 +02:00
Dirgita
0d34e84406 Updated Indonesian translation 2014-04-22 08:49:35 +00:00
Christian Kirbach
31ecc0de94 Updated German translation 2014-04-21 12:57:11 +00:00
Tom Tryfonidis
23e03038fc Updated Greek translation 2014-04-18 17:55:54 +00:00
Cosimo Cecchi
c938e74231 gapplication-tool: ensure object paths are valid
Hyphens are not valid characters for DBus object paths; see the similar
code in gapplicationimpl-dbus.c

https://bugzilla.gnome.org/show_bug.cgi?id=727928
2014-04-10 09:18:01 -07:00
Cosimo Cecchi
7239416442 gapplication-tool: fix a typo
This must have never worked.

https://bugzilla.gnome.org/show_bug.cgi?id=727928
2014-04-10 09:18:00 -07:00
Dan Winship
f9da883418 g_str_has_prefix: don't call strlen(str)
There's no reason to check the length of @str in g_str_has_prefix(),
since if it's shorter than @prefix, the strncmp() will fail anyway.
And besides making the function less efficient, it also breaks code
like:

    if (buf->len >=3 && g_str_has_prefix (buf->data, "foo"))
      ...

which really looks like it ought to work whether buf->data is
nul-terminated or not.

https://bugzilla.gnome.org/show_bug.cgi?id=727890
2014-04-10 10:10:34 -04:00
Alexandre Rostovtsev
3662eb9759 gobject: try to link with -Wl,-z,nodelete
Since the type system does not support reloading its data and assumes
that libgobject remains loaded for the lifetime of the process, we
should link libgobject with a flag indicating that it can't be unloaded.

https://bugzilla.gnome.org/show_bug.cgi?id=707298
2014-04-10 01:25:14 -04:00
Dan Winship
a36ed27156 gtlscertificate: fix certificate list parsing with trailing comments
g_tls_certificate_list_new_from_file() was supposed to ignore non-PEM
content, but it accidentally required that there not be anything after
the last certificate. Fix that.

https://bugzilla.gnome.org/show_bug.cgi?id=727692
2014-04-09 10:41:44 -04:00
Marek Kasik
7e10a9141e GApplication: Don't decrease use_count below 0
Place an assert for use_count to be at least 1
in g_application_release() so we don't decrease
it below 0.

https://bugzilla.gnome.org/show_bug.cgi?id=727551
2014-04-04 16:18:46 +02:00
Olivier Crête
c7a661988e networkmonitornetlink: IN6_IS_ADDR_MC_LINKLOCAL is only guaranteed to work on struct in6_addr*
https://bugzilla.gnome.org/show_bug.cgi?id=727119
2014-03-31 12:48:18 -04:00
Marek Černocký
1bfb55421e Updated Czech translation 2014-03-31 13:33:27 +02:00
Inaki Larranaga Murgoitio
46fb68bcf3 Updated Basque language 2014-03-30 15:11:26 +02:00
Gábor Kelemen
9ff4db48f3 Updated Hungarian translation 2014-03-30 01:26:11 +00:00
Volker Sobek
14d436f526 GNotification: Some small documentation fixes
Use #GVariant instead of GVariant.

g_notification_add_button_with_target,
g_notification_set_default_action_and_target:
Replace 'format_string' with 'target_format'.

g_notification_set_default_action_and_target_value:
Remove paragraph that apparently had been accidentally copied from
g_notification_set_default_action_and_target.

https://bugzilla.gnome.org/show_bug.cgi?id=727123
2014-03-27 01:38:58 +01:00
Ryan Lortie
3f8f040349 GLib 2.40.0 2.40.0 2014-03-24 14:53:42 -04:00
Dan Winship
187af7ba1d gio/tests/socket: skip IPv6 tests on IPv6-less machines
https://bugzilla.gnome.org/show_bug.cgi?id=667468
2014-03-21 09:49:53 -04:00
Dan Winship
e407aca744 Clarify expectations with error codes like G_IO_ERROR_FAILED
If an error code enumeration is expected to be extended in the future,
people shouldn't compare explicitly against its generic "FAILED" value.

https://bugzilla.gnome.org/show_bug.cgi?id=726775
2014-03-20 10:24:23 -04:00
Ask H. Larsen
5e87e2581e Updated Danish translation 2014-03-20 10:24:21 -04:00
Мирослав Николић
be25603b94 Updated Serbian translation 2014-03-20 10:24:14 -04:00
A S Alam
1a8e3074af update Punjabi Translation 17March2014: Alam 2014-03-17 16:39:21 -05:00
Ryan Lortie
599c669b23 GLib 2.39.92 2.39.92 2014-03-17 17:18:47 -04:00
Claude Paroz
b0630a37b8 Updated French translation 2014-03-15 19:45:27 +00:00