Commit Graph

17404 Commits

Author SHA1 Message Date
Ondrej Holy
f480caf760 gunixmounts: Fix mount points generation
Commit 53ed180 improved mtab processing, however, also introduced bug
in code obtaining mount points. mtab was used by mistake also for
g_unix_mount_points_get implementation, which is obviously wrong and
fstab has to be used instead...

https://bugzilla.gnome.org/show_bug.cgi?id=781867
2017-10-02 12:58:44 +02:00
Matej Urbančič
ab3a0e6176 Updated Slovenian translation 2017-09-29 08:41:21 +02:00
Chun-wei Fan
20364bbdf5 Build: Fix glib/glibconfig.h.win32.in for x64 builds
Fix the [GSIZE|GSSIZE]_TO_[BE|LE] macros on x64 builds.
2017-09-15 13:10:34 +08:00
Chun-wei Fan
90e86f8a2a config.h.win32.in: Fix and update entries
Make config.h.win32.in reflect on the entries that are in the
autotools/Meson builds more closely.

Also declare that we have fd_set, declare SIZEOF_[SIZE|SSIZE]_T and
SIZEOF_LONG_LONG for 32-bit and x64 builds properly.

Note that since the Visual Studio 2015/2017 CRT's vsnprintf() and
snprintf() are not compliant enough (though they are much closer than
before) for GLib's purporses, we still use the gnulib's implementations
of them, as with the pre-Visual Studio 2015 builds.
2017-09-15 12:02:49 +08:00
Chun-wei Fan
915ab35e96 meson: Install items according to their relevance
The m4 and bash completion items are usable and relevant
depending on the host system's configuration.  So, we check for the
presence of the programs that these items depend on, and only install
them when those programs are found.

For the Valgrind suppression files, we don't install them on Windows as
Valgrind is currently not supported on Windows.

Als fix the path where the GDB helpers are installed, as the path is
incorrectly constructed.

This will fix the "install" stage when building on Visual Studio at
least as there are some post-install steps that are related to them,
which will make use of these programs.

https://bugzilla.gnome.org/show_bug.cgi?id=783270
2017-09-14 16:01:17 +08:00
Chun-wei Fan
fcf26cbf05 build: Dist the other required Meson build files
Some of the Meson build files are not dist'ed by 'make dist', which are
reqired for things to work, and there was a missing '\' that cause some
of the meson.build files under tests/ not to be disted.

https://bugzilla.gnome.org/show_bug.cgi?id=783210
2017-09-14 16:01:06 +08:00
Chun-wei Fan
4ba41dbd20 build: Define G_HAVE_GNUC_[VARARGS|VISIBILITY] conditionally
They are not supported by Visual Studio, so only define them in
glibconfig.h.in when not on Visual Studio.  Fixes builds of GTK+-2.x
against Meson/MSVC builds of GLib.

https://bugzilla.gnome.org/show_bug.cgi?id=783270
2017-09-14 10:22:14 +08:00
Ignacio Casal Quinteiro
f9d95de490 Revert "GSocket: Fix race conditions on Win32 if multiple threads are waiting on conditions for the same socket"
This reverts commit 799f8dcd46.
This patch seems to break applications that use GTask specific
operations with GSocket. We will need to investigate a bit more
on this issue but for now we revert it and leave it for the
next major release.
2017-09-12 23:27:05 +02:00
Federico Mena Quintero
51e852e5d0 validate_pspec_to_install(): Factor out function to validate a GParamSpec
This was duplicated also in g_object_interface_install_property().

Now, validations specific to classes happen in
validate_and_install_class_property() - specifically, the checks for
the presence of the get_property() and set_property() methods.

https://bugzilla.gnome.org/show_bug.cgi?id=787551
2017-09-11 12:44:45 -05:00
Federico Mena Quintero
20720eaf1e validate_and_install_property(): Check pspec-specific fields in the same order as g_object_interface_install_property()
https://bugzilla.gnome.org/show_bug.cgi?id=787551
2017-09-11 12:44:45 -05:00
Federico Mena Quintero
95f44b280f validate_and_install_property(): Validate presence of get/set_property methods last
https://bugzilla.gnome.org/show_bug.cgi?id=787551
2017-09-11 12:44:45 -05:00
Federico Mena Quintero
1b08414f06 g_object_interface_install_property(): Do interface-specific validations first
https://bugzilla.gnome.org/show_bug.cgi?id=787551
2017-09-11 12:44:45 -05:00
Federico Mena Quintero
e667d0d4c0 install_property_internal(): Propagate failure when installing duplicated properties
https://bugzilla.gnome.org/show_bug.cgi?id=787551
2017-09-11 12:44:41 -05:00
Federico Mena Quintero
9dd9fe4feb validate_and_install_class_property(): Factor out function to add a new property to a class
This was duplicated between g_object_class_install_property() and
g_object_class_install_properties().

https://bugzilla.gnome.org/show_bug.cgi?id=787551
2017-09-11 11:26:01 -05:00
Federico Mena Quintero
85ef144334 GObjectClass: extract class type and parent type at the beginning
https://bugzilla.gnome.org/show_bug.cgi?id=787551
2017-09-11 11:26:01 -05:00
Federico Mena Quintero
7d9a6c8687 GObjectClass: Validate installing property/properties in the same way
Then we'll be able to factor out duplicated code.

https://bugzilla.gnome.org/show_bug.cgi?id=787551
2017-09-11 11:26:01 -05:00
Carlo Caione
6503352be1 gvariant: Add g_variant_get() example for dicts
In the Dictionary section of the gvariant-format-strings documentation
only how to construct a dictionary is shown.

Add a small example showing how to extract data from a nested dictionary
and specifically from a GVariant of type "(oa{sa{sv})". Move also the
Dictionary section after the GVariant * section for the sake of clarity.

https://bugzilla.gnome.org/show_bug.cgi?id=786737
2017-09-11 09:46:21 +01:00
Matthias Clasen
738eff5dec 2.54.0 2017-09-10 20:18:10 -04:00
Anders Jonsson
b6ea70bf0b Update Swedish translation 2017-09-10 12:26:26 +00:00
Daniel Șerbănescu
aceedae17d Update Romanian translation 2017-09-10 11:37:50 +00:00
Jordi Mas
1ad6e4f254 Fixes to Catalan translation 2017-09-10 08:08:43 +02:00
Inaki Larranaga Murgoitio
c0a04b60a2 Update Basque language 2017-09-09 16:11:31 +02:00
Cosimo Cecchi
88a39670e7 GSettingsBackend: use a GWeakRef during dispatch
Instead of a full reference, which causes problems for clients that
expect a GSettings instance to stop firing signals once they drop the
last reference.

https://bugzilla.gnome.org/show_bug.cgi?id=780861
2017-09-08 09:29:18 -07:00
INSUN PYO
61cb8b232b GMainLoop: match of parameter pair of LOCK_CONTEXT/UNLOCK_CONTEXT
There is no reason to use source->context as as parameter of UNLOCK_CONTEXT.
To avoid confusion, change to the parameter used in LOCK_CONTEXT.

https://bugzilla.gnome.org/show_bug.cgi?id=787146
2017-09-08 15:57:59 +01:00
Bastien Nocera
f813ce6abe glib: Slightly update GIOChannel documentation
Explain the default values of _{get,set}_close_on_unref() in the main
description rather than the argument one, link to the GIOChannel
structure when talking about it, and mention the default value of
"close on unref" in g_io_channel_unix_new().

https://bugzilla.gnome.org/show_bug.cgi?id=787123
2017-09-08 15:40:15 +01:00
Philip Chimento
a72f57eeab valgrind: Add false positive to suppressions file
Valgrind will check that the third argument to ioctl() is a valid
pointer, but some ioctls interpret that argument as an integer, and that
is the case here (it's a file descriptor), so this is a false positive.

https://bugzilla.gnome.org/show_bug.cgi?id=787109
2017-09-08 15:36:32 +01:00
Chris Lamb
e5eaca5492 gio-querymodules: Make the output reproducible
Whilst working on the Reproducible Builds effort [0], we noticed that
queryimmodules generates non-reproducible output as it iterates over the
filesystem without sorting.

Patch attached.

 [0] https://reproducible-builds.org/

Signed-off-by: Chris Lamb <lamby@debian.org>

https://bugzilla.gnome.org/show_bug.cgi?id=786983
2017-09-08 15:20:27 +01:00
Chun-wei Fan
2204034b9f win32/gen_util_scripts.py: Update script type error message
We should also mention glib-genmarshal in the acceptable types, since it
is now a Python script.

Pointed out by John Emmas
2017-09-07 10:56:18 +08:00
Daniel Boles
b1b00517cf GApplication: Fix required # of elements in docs
The reality, as shown by our tests, is that only 2 elements are needed.
2017-09-06 21:44:25 +01:00
Matthias Clasen
052f134528 2.53.7 2017-09-04 09:02:53 -04:00
Jordi Mas
03b595fe95 Update Catalan translation 2017-09-04 00:30:45 +02:00
Emin Tufan Çetin
bb7c198398 Update Turkish translation 2017-09-03 19:50:22 +00:00
Ask Hjorth Larsen
4a5808d35d Updated Danish translation 2017-09-03 17:53:24 +02:00
Changwoo Ryu
c202dea549 Update Korean translation 2017-09-02 03:55:54 +00:00
Jiri Grönroos
31b1536993 Update Finnish translation 2017-08-31 08:11:03 +00:00
Rafael Fontenelle
32a57ecfbd Update Brazilian Portuguese translation 2017-08-30 01:08:04 +00:00
Armin K
414225d7b3 meson: Compile guuid.c into libglib-2.0
https://bugzilla.gnome.org/show_bug.cgi?id=786807
2017-08-29 12:54:51 +03:00
Rūdolfs Mazurs
728857e261 Update Latvian translation 2017-08-28 18:25:13 +03:00
Milo Casagrande
20f2c487a7 Update Italian translation 2017-08-28 08:44:01 +00:00
Christian Kirbach
aac0144164 Update German translation 2017-08-26 20:40:51 +00:00
Ask Hjorth Larsen
abe7323bee Updated Danish translation 2017-08-26 18:44:00 +02:00
Claude Paroz
9891e3c9e1 Updated French translation 2017-08-26 11:56:37 +02:00
Fabio Tomat
96ae6f1a3b Update Friulian translation 2017-08-25 10:24:21 +00:00
Emmanuele Bassi
100b83a7fa genmarshal Only wrap body prototypes in C++ guards
Commit 31ae2c5598 added the C++ guards
around all prototypes, including inside the header file. The header
file, though, already has C++ guards, so while it's harmless to have
them there, it's also unnecessary.

We should only emit C++ guards around the prototypes we include in the
generated source.
2017-08-25 09:53:56 +01:00
Fabio Tomat
9ff6f24a58 Update Friulian translation 2017-08-25 08:49:44 +00:00
Piotr Drąg
cceef1681d Update Polish translation 2017-08-24 01:06:12 +02:00
Cj Malone
926db3174a gdesktopappinfo.c: Drop disregarded xterm check
https://bugzilla.gnome.org/show_bug.cgi?id=786580
2017-08-23 23:55:43 +01:00
Daniel Boles
830744b0f4 docs/running: Remove outdated refs, fix name caps
Drop references to old versions of Fedora pointed out by Mohammed Sadiq.

While here, fix the capitalisation of various names to official styles.
2017-08-23 12:21:58 +01:00
Philip Withnall
73eee8d64e tests: Fix some leaks and double-frees in the GSubprocess tests
Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://bugzilla.gnome.org/show_bug.cgi?id=786456
2017-08-23 11:37:32 +01:00
Will Thompson
65a95a5a2d gio: failing cases for subprocess cancellable bug
https://bugzilla.gnome.org/show_bug.cgi?id=786456
2017-08-23 11:37:32 +01:00