Commit Graph

16439 Commits

Author SHA1 Message Date
Wolfgang Stöggl
fcc7123d75 Updated German translation 2016-09-02 05:33:12 +00:00
Matthias Clasen
4295326c99 2.48.2 2.48.2 2016-08-17 12:36:54 -04:00
Matthias Clasen
015df3b021 Fix a small typo 2016-08-17 12:07:39 -04:00
Daniel P. Berrange
b179c5f0e3 gchecksum: annotate when G_CHECKSUM_SHA512 was introduced
Currently the docs for GChecksumType are simpy annotated
with 'Since 2.16' which is when GChecksumType was first
introduced. No mention is made of the fact that the
G_CHECKSUM_SHA512 constant was only added much later
in 2.36.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

https://bugzilla.gnome.org/show_bug.cgi?id=769027
2016-08-17 12:07:39 -04:00
Lars Uebernickel
353e10eb48 gsettings: clarify changed signal documentation
Make it clear that this signal is only guaranteed to be emitted when a
key has been read before.

https://bugzilla.gnome.org/show_bug.cgi?id=750257
2016-08-17 12:07:39 -04:00
Ismo Puustinen
ab1a4d58c5 gio: properly free memory, preventing leak and illegal access.
https://bugzilla.gnome.org/show_bug.cgi?id=753231
2016-08-17 12:07:39 -04:00
Xavier Claessens
a4731c0830 Doc: Clarify when g_variant_get_fixed_array() should be used instead of _get_bytestring()
https://bugzilla.gnome.org/show_bug.cgi?id=746685
2016-08-17 12:07:39 -04:00
Matthias Clasen
8a2fc7b657 Fix a corner-case in g_utf8_find_next_char
In the case that *p is '\0', we should return p + 1, not p.
This change allows to simplify g_utf8_find_next_char a bit.

https://bugzilla.gnome.org/show_bug.cgi?id=547200
2016-08-17 12:07:39 -04:00
Milan Crha
9f4a567da7 Fix memory leaks in GNetworkMonitorNetlink
As claimed by valgrind in a downstream bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=1317369

https://bugzilla.gnome.org/show_bug.cgi?id=766933
2016-08-17 12:07:39 -04:00
Olivier Crête
077a7a4821 socketservice: Document that it starts pre-activated.
https://bugzilla.gnome.org/show_bug.cgi?id=728207
2016-08-17 12:07:39 -04:00
Aurélien Zanelli
d175c7f4d8 gio/tests/gsettings: fix GSettings reference leaks in some tests
GSettings objects were not unreffed in test_flags, test_enums and
test_ranges tests and when we skip internationalization tests, ie
test_l10n(_context).

https://bugzilla.gnome.org/show_bug.cgi?id=768560
2016-08-17 12:07:39 -04:00
Aurélien Zanelli
9cd2772df0 keyfile: return 0 when the parsed double value is invalid
As specified in the g_key_file_get_double documentation.

https://bugzilla.gnome.org/show_bug.cgi?id=768504
2016-08-17 12:07:39 -04:00
Aurélien Zanelli
df8c762339 glib/tests/keyfile: check return value of g_key_file_get_double is 0 for invalid values
As specified in the documentation of g_key_file_get_double function.

https://bugzilla.gnome.org/show_bug.cgi?id=768504
2016-08-17 12:07:39 -04:00
Jonatan Pålsson
c32e5bc33d docs: Remove superflous XML comments in doc string for GDBusProxyTypeFunc
https://bugzilla.gnome.org/show_bug.cgi?id=766899
2016-08-17 12:07:39 -04:00
Evan Nemerson
e52f8f8d95 gtestutils: add missing dash in seed argument's --help documentation
https://bugzilla.gnome.org/show_bug.cgi?id=760115
2016-08-17 12:07:39 -04:00
Stephan Bergmann
c846145ea8 Swallow -- argument when necessary
https://bugzilla.gnome.org/show_bug.cgi?id=768806
2016-08-17 12:07:39 -04:00
suhail
ddea8b2967 docs: trivial typo fixes
https://bugzilla.gnome.org/show_bug.cgi?id=767949
2016-08-17 12:07:39 -04:00
Ting-Wei Lan
2d74f09587 gio-querymodules: Call setlocale in main function
It is required to correctly show translated messages on some locales.

https://bugzilla.gnome.org/show_bug.cgi?id=760423
2016-08-17 12:07:39 -04:00
Nirbheek Chauhan
b0508b4c7b gmacros.h: offsetof is also available on MSVC
All versions since Visual C++ 2005 have this available, so we can just
use it for G_STRUCT_OFFSET.

See: https://msdn.microsoft.com/en-us/library/dz4y9b9a.aspx
2016-08-17 12:07:39 -04:00
Dan Winship
5cbc6b02b8 Fix gio/tests/inet-address on OS X
OS X apparently stringifies the IPv6 address "::80" as "::0.0.0.128",
which is bizarre, but that address *is* in a "reserved for future use"
range, so it's not unambiguously wrong I guess. Anyway, fix the text
to use an address everyone can agree on.

https://bugzilla.gnome.org/show_bug.cgi?id=768551
2016-08-17 12:07:39 -04:00
Ryan Lortie
6903fcd170 build: simplify dtrace configuration
The ability to pass libtool via $(CC) to dtrace and have it respect this
appears to be a feature that is only present in the systemtap version of
the tool.  In particular, FreeBSD (which seems to be using a copy of the
tool from Solaris) doesn't support this.

The result is that, with $(CC) ignored, and a .lo file specified in -o,
we get an ELF written to the .lo.

Instead of trying to have dtrace run libtool we can have libtool run
dtrace.  dtrace is really just a compiler that produces an object file
here, and it even understands -o, so libtool can make the appropriate
adjustments.

There appears to be some prior art for this approach.  A quick search
shows that at least QEMU is using this approach.  It also appears to
work on Linux with systemtap's dtrace and on FreeBSD.

This may regress cross-compilation because the dtrace command will have
no way of knowing which compiler we intend for it to use to produce the
object file.  I say "may" because I don't know if dtrace ever worked in
the first place under cross-compilation.

https://bugzilla.gnome.org/show_bug.cgi?id=725902
2016-08-17 12:07:39 -04:00
Philip Withnall
1374897845 glocalfileoutputstream: Drop unnecessary (void) return value casts
g_close() does not have G_GNUC_WARN_UNUSED_RESULT, so these casts are
unnecessary.
2016-08-17 12:07:39 -04:00
Philip Withnall
cbb030d90a glocalfileoutputstream: Fix an FD leak in an error path
If a backup file is created, opened successfully, then fstat() on it
fails (perhaps due to another process deleting it in the mean time?),
the FD will be leaked.

Coverity issue: #1159485

https://bugzilla.gnome.org/show_bug.cgi?id=730187
2016-08-17 12:07:39 -04:00
Philip Withnall
a298b47fa0 gio: Support using GDBusObjectManagerServer at path ‘/’
Previously this would cause an assertion failure when checking the paths
of exported objects, as it would try to check that their paths started
with ‘//’ due to mishandling the root object case.

Includes a unit test.

https://bugzilla.gnome.org/show_bug.cgi?id=761810
2016-08-17 12:07:39 -04:00
Philip Withnall
2334bc5992 gfileutils: Fix a signed/unsigned integer comparison
Also use size_t rather than int, allowing for larger files to be
handled.

https://bugzilla.gnome.org/show_bug.cgi?id=700756
2016-08-17 12:07:39 -04:00
Hans Petter Jansson
6e6ac77297 GDbusProxy: Plug memory leak.
proxy->priv->name_owner gets overwritten in async_init_data_set_name_owner() on the
assumption that it will always be NULL when we get there. However,
on_name_owner_changed() can run first, and it does set name_owner.

==20126== 42 bytes in 6 blocks are definitely lost in loss record 15,174 of 48,256
==20126==    at 0x4C280F3: malloc (vg_replace_malloc.c:299)
==20126==    by 0x7541D00: g_malloc (gmem.c:104)
==20126==    by 0x7558FEE: g_strdup (gstrfuncs.c:364)
==20126==    by 0x6DF8E4F: on_name_owner_changed (gdbusproxy.c:1399)
==20126==    by 0x6DE94C4: emit_signal_instance_in_idle_cb (gdbusconnection.c:3743)
==20126==    by 0x753C315: g_main_dispatch (gmain.c:3066)
==20126==    by 0x753C315: g_main_context_dispatch (gmain.c:3642)
==20126==    by 0x753C667: g_main_context_iterate.isra.24 (gmain.c:3713)
==20126==    by 0x753CA69: g_main_loop_run (gmain.c:3907)
==20126==    by 0x5E38000: meta_run (main.c:556)
==20126==    by 0x401EC0: main (main.c:441)

https://bugzilla.gnome.org/show_bug.cgi?id=755439
2016-08-17 12:07:39 -04:00
Emmanuele Bassi
8a45739349 Fix paths for non-srcdir builds
This fixes a build failure in Continuous that resulted in the error:

../../../gio/tests/test.gresource.xml: Failed to locate
'test-generated.txt' in any source directory.
Makefile:4676: recipe for target 'test.gresource' failed
make[6]: *** [test.gresource] Error 1
2016-08-17 12:07:39 -04:00
Georges Basile Stavracas Neto
e0c6b8e17a glib-compile-resources: correct resource compiler dependency for generated files
Don't require that files can be resolved when generating dependencies.

Original patch by Garret Regier.

https://bugzilla.gnome.org/show_bug.cgi?id=673101
2016-08-17 12:07:39 -04:00
Gerald Combs
5096d37aae gsignal: Remove a UTF-8 ellipsis from docs
Some compilers have trouble with such sequences. Visual C++ may or may
not generate a warning in this particular case depending on if the
local code page supports an ellipsis.

https://bugzilla.gnome.org/show_bug.cgi?id=767218
2016-08-17 12:07:39 -04:00
Krzesimir Nowak
477410b502 gio: Add a missing autocleanup for GFileAttributeInfoList 2016-08-17 12:07:39 -04:00
Colin Walters
124ad40439 docs: Move GIO_USE_VFS to "okay for production" section
Lots of projects like NetworkManager, ostree, udisks, soon polkit,
etc.  do this or *should* do this.  And we need to support that
forever.

https://bugzilla.gnome.org/show_bug.cgi?id=767172
2016-08-17 12:07:39 -04:00
Matthias Clasen
c87610ac4f GCredentialsType: Remove XML markup from docs
We now use markdown.
2016-08-17 12:07:39 -04:00
Krzesimir Nowak
6d3cedf450 gfileenumerator: Fix typo in docs
This probably used to be a part of libgsystem.
2016-08-17 12:07:39 -04:00
Iain Lane
28ce1902dc Fix the upper bound in g_unichar_iswide_bsearch
asan noticed an array out of bound access in this function, which was
because we were accessing G_N_ELEMENTS + 1.

https://bugzilla.gnome.org/show_bug.cgi?id=766211
2016-08-17 12:07:39 -04:00
Matthias Clasen
8111a175a9 Add a few more test cases for g_unichar_iswide 2016-08-17 12:07:39 -04:00
Simon McVittie
cd7562b8d9 gdbus-example-unix-fd-client: avoid strftime %c specifier
gcc 6 warns (fatally, by default) that %c only uses a 2-digit year
in some locales. The precise format does not seem to be important
for this sample code, so use ISO 8601 instead of suppressing the
warning with a pragma.

Signed-off-by: Simon McVittie <smcv@debian.org>
Reviewed-by: Colin Walters
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=768453
(cherry picked from commit 037719c27c)
2016-08-15 14:05:37 +01:00
Andika Triwidada
7cb5b02e6a Updated Indonesian translation 2016-06-24 10:08:01 +00:00
Chun-wei Fan
4ba266f856 Visual Studio builds: Make .pc generation more flexible
Allow the use of ${exec_prefix} for libdir and includedir when passing
them in as arguments to the script.
2016-06-22 15:24:47 +08:00
John Ralls
3c2111e5c3 Bug 767824 - Some UTC timezones incorrectly recognized on Windows 7
The condition removed erroneously excluded UTC-based and DST-less
timezones and so left the GArray with no contents, so GTimeZone functions
returned whatever random garbage was in memory.

(cherry picked from commit 35b401c8bb)
2016-06-19 15:06:45 -07:00
Chun-wei Fan
9f2317fa40 Visual Studio projects: Clean up a little bit
For the Visual Studio 201x projects, we can force the "install" projects
to always run in a simpler way, by specifying an output file that will
never exist.  Makes things look a bit cleaner.
2016-06-15 16:34:29 +08:00
Chun-wei Fan
b534b1ba06 Visual Studio builds: Refine .pc creation
We may not have $(CopyDir) created, which the script that generates the
.pc files check for, so create it if it is not there.  This makes things a
bit more convenient for people.
2016-06-15 16:21:03 +08:00
Chun-wei Fan
d949b912ee config.h.win32.in: Always define HAVE_LONG_LONG
Visual Studio actually supports long long types, but HAVE_LONG_LONG is
undefined for Visual Studio builds, likely due to issues in previous
gnulib code for printf functionality, that was bundled with GLib.

Since gnulib has much better support with Visual Studio nowadays (which we
updated the related code to last October), and HAVE_LONG_LONG being undefined
actually causes issues in Visual Studio builds, which was demonstrated with
the type-test test program in tests/, we should always define HAVE_LONG_LONG
in config.h.win32.in.

Thanks to Paolo Borelli for the heads up on the issue.
2016-06-07 16:01:06 +08:00
Chun-wei Fan
1435f13bff glib/gnulib/printf-parse.c: Fix build on Visual Studio 2008
Visual Studio 2008 does not come with stdint.h, so define intmax_t instead
on Visual Studio 2008 so that the code will continue to build.  This was
previously unnoticed as building GTK+ since 3.16 requires an
implementation of stdint.h (such as msinttypes), and it took care of the
need of including the stdint.h header here, but people could be very well
using GLib without using GTK+ 3.x.
2016-05-25 14:18:53 +08:00
Muhammet Kara
67ce4d8c7b Updated Turkish translation 2016-05-20 19:32:08 +00:00
Tiago Santos
f105e86f56 Updated Portuguese translation 2016-05-15 19:44:19 +00:00
Allison Ryan Lortie
ee1434632b GLib 2.48.1 2.48.1 2016-05-10 11:05:39 +02:00
Víctor Manuel Jáquez Leal
b6bf837590 glib tests: add pthread flag to 'thread' test
Commit 99bdfd1b introduced a direct call to pthreads_setname_np in the
'thread' test case.  Because we are directly calling pthreads functions
from this file now, we need to make sure we link it with the system
thread library flags (as we already do for another file).

https://bugzilla.gnome.org/show_bug.cgi?id=765712
2016-05-10 11:05:39 +02:00
Christian Hergert
1d746b6c94 socket: set fd field to -1 after closing socket
This ensures that g_socket_get_fd() will return -1 after the socket has
been closed.

https://bugzilla.gnome.org/show_bug.cgi?id=765959
2016-05-10 10:56:15 +02:00
Chun-wei Fan
6a892726d1 glib/gmacros.h: Fix build on C++ mode in Visual Studio
Later Visual Studio versions does not allow one to define known keywords,
even if they are actually not known to the compiler.  Avoid this issue by
checking more conditions before we define inline as __inline:

-We are not building under C++ mode.
-We are on Visual Studio 2013 or earlier.

Where both of these conditions need to hold true.

https://bugzilla.gnome.org/show_bug.cgi?id=765990
2016-05-05 00:45:14 +08:00
Emmanuele Bassi
bb11e01de7 Revert "codegen: Add g_autoptr support for the shared GInterface"
This reverts commit ca189aa321.

The new g_autoptr symbol definition in GDBus generated code breaks
existing code that uses gdbus-codegen and defines its own auto clean up
symbols.

This needs further discussion before cherry-picking to the stable
branch.

https://bugzilla.gnome.org/show_bug.cgi?id=763379
2016-05-03 11:09:42 +01:00