19912 Commits

Author SHA1 Message Date
Emmanuele Bassi
ff0fd18683 Merge branch 'backport-814-gschema-fix-glib-2-60' into 'glib-2-60'
Backport !814 “gschema.dtd: Add target attribute to alias” to glib-2-60

See merge request GNOME/glib!816
2019-05-20 12:15:13 +00:00
Philip Withnall
57997abdc1 Merge branch 'wip/tingping/network-address-backport' into 'glib-2-60'
Backport !823 "gnetworkaddress: Fix parallel enumerations interfering with eachother" to glib-2-60

See merge request GNOME/glib!834
2019-05-16 09:01:48 +00:00
Emmanuele Bassi
6729a82b0c Merge branch 'backport-835-german-typo-glib-2-60' into 'glib-2-60'
Backport !835 “Fix typo in German translation” to glib-2-60

See merge request GNOME/glib!838
2019-05-13 15:00:08 +00:00
Martin Kröning
72817af402 Fix typo in German translation 2019-05-13 11:49:57 +01:00
Patrick Griffis
1b77792ac3 gnetworkaddress: Fix parallel enumerations interfering with eachother
The parent GNetworkAddress contains a shared list of resolved
addresses that is used as a cache for multiple enumerations.

This commit ensures that the cache is only set upon completion of
DNS lookups and only read once by enumerations to avoid being in a
bad state.

Fixes #1771
2019-05-10 18:08:48 -07:00
Michael Catanzaro
2b42205193 Merge branch 'backport-824-socketclient-leak-glib-2-60' into 'glib-2-60'
Backport !824 “gsocketclient: Fix a leak in the connection code” to glib-2-60

See merge request GNOME/glib!826
2019-05-09 20:22:38 +00:00
Allison Karlitskaya
daac518778 gsocketclient: Fix a leak in the connection code
We miss releasing the async operation's reference on a state object in
one of the error cases.

The call to connection_attempt_remove() (although it calls unref
internally) is not sufficient because this is releasing the reference
that the list owns.

Closes #1774
2019-05-09 17:54:37 +01:00
Ernestas Kulik
05ea79d529 gschema.dtd: Add target attribute to alias
The implementation requires it, but the DTD doesn’t even mention it.
2019-05-07 11:45:10 +01:00
Michael Catanzaro
3f40ca54b0 Merge branch 'cherry-pick-b17436d9' into 'glib-2-60'
Merge branch 'wip/tingping/socketclient-cancel-2' into 'master'

See merge request GNOME/glib!815
2019-05-06 22:16:14 +00:00
Michael Catanzaro
0195a56334 Merge branch 'wip/tingping/socketclient-cancel-2' into 'master'
gsocketclient: Fix potential critical when cancelling connect

Closes #1747

See merge request GNOME/glib!783

(cherry picked from commit b17436d952f5ad682dfe98e0eca7bc31705cf776)

313e7cba gsocketclient: Fix potential critical when cancelling connect
2019-05-06 21:53:28 +00:00
Philip Withnall
a3b5608170 Version 2.60.2
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2.60.2
2019-05-03 14:30:03 +01:00
Sebastian Dröge
47e06aedc1 Merge branch 'backport-786-cocoa-notification-mem-handling-glib-2-60' into 'glib-2-60'
Backport !786: “cocoanotificationbackend: do not release readonly property” to glib-2-60

See merge request GNOME/glib!793
2019-05-02 13:02:23 +00:00
Sebastian Dröge
745112dfd3 Merge branch 'backport-781-network-monitor-glib-2-60' into 'glib-2-60'
Backport !781 “gnetworkmonitornm: Fix network available detection” to glib-2-60

See merge request GNOME/glib!803
2019-05-02 12:46:29 +00:00
Fabrice Bellet
567a2c7e78 gnetworkmonitornm: Fix network available detection
The network-available property can be asserted by querying the NMState
describing the current overval network state, instead of the
NMConnectivityState. The advantage of the NMState is that is reflects
immediately the network state modification, while the connectivity
state is tested at a fixed frequency.
2019-04-29 13:07:51 +01:00
Ignacio Casal Quinteiro
0733bf1f58 cocoanotificationbackend: do not release readonly property
Fixes a crash when releasing a property that was not retained before.

Helps: https://gitlab.gnome.org/GNOME/glib/issues/1751
2019-04-25 10:14:13 +01:00
Philip Withnall
5391fd2073 Merge branch 'gresource-compiler-2-60' into 'glib-2-60'
glib/gconstructor.h: Include stdlib.h for MSVC builds

See merge request GNOME/glib!790
2019-04-24 09:19:38 +00:00
Chun-wei Fan
42fe9a5bb0 glib/gconstructor.h: Include stdlib.h for MSVC builds
This is in case the compiler complains that we don't have the prototypes
for atexit(), and it doesn't hurt to include that file here.
2019-04-24 13:30:44 +08:00
Robert Antoni Buj Gelonch
ab1cc89209 Update Catalan translation 2019-04-17 16:53:07 +00:00
Philip Withnall
527022ae14 2.60.1
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2.60.1
2019-04-15 11:47:26 +01:00
Emmanuele Bassi
084f639c28 Merge branch 'backport-776-external-data-test-glib-2-60' into 'glib-2-60'
Backport !776 “tests: Only run --external-data test on GNU ld/objcopy” to glib-2-60

See merge request GNOME/glib!778
2019-04-15 09:42:15 +00:00
Philip Withnall
30b153923f tests: Only run --external-data test on GNU ld/objcopy
Other GCC-like implementations of ld/objcopy (like LLVM) don’t yet
support the right command line arguments, so can’t compile the test.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://gitlab.gnome.org/GNOME/glib/issues/1709
2019-04-15 10:26:18 +01:00
Philip Withnall
63f42284fa build: Refactor resources test build instructions
This introduces no functional changes, but combines two duplicated lists
and makes the meson.build file a little easier to follow.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Helps: #1711
2019-04-15 10:26:18 +01:00
Philip Withnall
cd11f2415f build: Fix some whitespace problems in gio/tests/meson.build
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-04-15 10:26:18 +01:00
Philip Withnall
44d7c68301 Merge branch 'fix-iconv-libc-macos' into 'glib-2-60'
meson: Hotfix for iconv detection on macOS

See merge request GNOME/glib!775
2019-04-11 14:37:56 +00:00
Nirbheek Chauhan
fcf68f8f31 meson: Hotfix for iconv detection on macOS
macOS/iOS do not ship iconv inside the C library, so don't try to look
for that at all when targetting macOS or iOS.

The proper fix involved changing the options and will be merged in
master: https://gitlab.gnome.org/GNOME/glib/merge_requests/759
2019-04-11 18:00:05 +05:30
Sebastian Dröge
13ea376a54 Merge branch 'backport-1737-gdbus-tool-wait-timeout-glib-2-60' into 'glib-2-60'
Backport !753 “gdbus-tool: Fix units for `gdbus-tool wait` timeout” to glib-2-60

See merge request GNOME/glib!764
2019-04-09 08:54:16 +00:00
Philip Withnall
7bd0160a17 gdbus-tool: Fix units for gdbus-tool wait timeout
They were documented as being in seconds, but implemented as
milliseconds.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Fixes: #1737
2019-04-03 17:05:28 +01:00
Emmanuele Bassi
9ec712db28 Merge branch 'backport-719-nm-monitor-check-glib-2-60' into 'glib-2-60'
Backport !719 “Handle an UNKNOWN NetworkManager connectivity as NONE” to glib-2-60

See merge request GNOME/glib!727
2019-04-03 14:13:42 +00:00
LRN
9b6278057c Merge branch 'backport-win32-rundll-dbus-path-glib-2-60' into 'glib-2-60'
gdbusaddress, win32: backport using cwd for running rundll32

See merge request GNOME/glib!758
2019-04-02 03:21:53 +00:00
Vasily Galkin
066ce38799 gdbusaddress, win32: don't rely on short names
Closes: https://gitlab.gnome.org/GNOME/glib/issues/1566

Short names were used in win32 implementation to allow launching
on installations where full path to libgio-2.0-0.dll contain spaces.
However, short names are optional on windows: so if they were disabled
that method fails - see issue linked above.

Since rundll32 doesn't support neither spaces, nor quotes in cmdline
this patch changes rundll32 argument to just .\gio-dll-name.dll
and uses the entire path directory containing gio dll as rundll32
current directory.

Added comments informing about potential subtleties discovered during
writing test for gdbusaddress on win32.
There are not known to have real-world user-visible effect,
so by now I'm only adding comments without creating issues.
2019-03-28 20:57:04 +03:00
Sebastian Dröge
f79f7341a0 Merge branch 'backport-728-socket-flags-glib-2-60' into 'glib-2-60'
Backport !728 “gsocket: Remove (type) annotation from flags arguments” to glib-2-60

See merge request GNOME/glib!729
2019-03-15 11:40:27 +00:00
Philip Withnall
74a5efa840 gsocket: Remove (type) annotation from flags arguments
This is essentially a revert of commit
cc7f2f6b28573feb78c43fd16c555c4360b5a714. While those `flags` arguments
do accept values of type GSocketMsgFlags, they also accept OS-specific
flags which are not defined in GSocketMsgFlags.

The use of (type GSocketMsgFlags) makes language bindings like GJS
rightfully assert that values passed in to the argument only contain
flags from GSocketMsgFlags, which precludes the use of OS-specific
flags, and hence breaks various bits of code.

See https://gitlab.gnome.org/GNOME/gjs/issues/227#note_460136 and
https://gitlab.gnome.org/GNOME/glib/merge_requests/710#note_460249.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Fixes: https://gitlab.gnome.org/GNOME/gjs/issues/227
2019-03-15 10:59:14 +00:00
40afd253b7 Handle an UNKNOWN NetworkManager connectivity as NONE
nm_conn_to_g_conn already handles UNKNOWN like NONE (returning
G_NETWORK_CONNECTIVITY_LOCAL in both cases). So in sync_properties
we should also set new_connectivity to G_NETWORK_CONNECTIVITY_LOCAL
for both NM_CONNECTIVITY_UNKNOWN and NM_CONNECTIVITY_NONE.

This has the added benefit that when NetworkManager returns the network
connectivity is UNKNOWN, we set network_available to FALSE as it should
be. Previously, there were cases in a laptop with no network access,
that g_network_monitor_get_network_available returned true, which was
wrong and is also fixed with this commit.
2019-03-15 10:06:14 +00:00
Philip Withnall
279bd62988 Merge branch 'macos-gappinfo-fix' into 'glib-2-60'
build: install gosxappinfo.h on macOS

See merge request GNOME/glib!726
2019-03-14 08:51:33 +00:00
Tom Schoonjans
b63b6cb5fc build: install gosxappinfo.h on macOS
Closes #1725
2019-03-14 13:49:43 +05:30
Simon McVittie
7d29a141fc Merge branch 'backport-721-codegen-fix-glib-2-60' into 'glib-2-60'
Backport codegen: Fix use of uninitialised variable from !721 to glib-2-60

See merge request GNOME/glib!722
2019-03-13 14:32:28 +00:00
Philip Withnall
2824503868 codegen: Fix use of uninitialised variable
If using the --interface-info-{body,header} options to gdbus-codegen,
and the first interface to be outputted has no methods, but does have
properties or signals, an uninitialised variable would be used for the
property/signal ‘since’ values.

In other situations, the ‘since’ value for a prior method would have
been incorrectly used for the properties/signals.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-03-13 14:00:02 +00:00
Nathan Follens
2e4a23cd1b Update Dutch translation 2019-03-10 13:02:16 +00:00
Asier Sarasua Garmendia
de807a519d Update Basque translation 2019-03-09 11:22:19 +00:00
Sebastian Dröge
380ef64975 Merge branch 'backport-710-socket-annotation-fix-glib-2-60' into 'glib-2-60'
socket: Fix annotation for flags in g_socket_receive_message

See merge request GNOME/glib!711
2019-03-07 10:53:56 +00:00
Andrea Azzarone
6afbbddd15 socket: Fix annotation for flags in g_socket_receive_message
(Backport of https://gitlab.gnome.org/GNOME/glib/merge_requests/710 from
master.)

Closes: https://gitlab.gnome.org/GNOME/gjs/issues/227
2019-03-07 10:37:41 +00:00
Philip Withnall
2edc5aa6df 2.60.0
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2.60.0
2019-03-04 20:03:12 +00:00
Philip Withnall
4d04353bbd Merge branch 'trash-check' into 'master'
trash portal: Fix permission checks

See merge request GNOME/glib!704
2019-03-04 19:47:11 +00:00
Matthias Clasen
147ac51f90 trash portal: Fix permission checks
Implement the approach suggested in
https://gitlab.gnome.org/GNOME/glib/merge_requests/276

1. Try to open O_RDWR. On success, pass that fd
2. If EACCESS => fail the trash op, we "need" read-write to successfully trash it
3. If EISDIR => re-open the fd with O_PATH, and pass that (which will fail on snap,
   but verify the dir for flatpaks)
2019-03-04 19:47:11 +00:00
Christoph Reiter
7fa9a2a5da Merge branch 'gi-267-rename-header' into 'master'
Rename gobjectenumtypes.[ch] to glib-enumtypes.[ch]

See merge request GNOME/glib!702
2019-03-04 15:03:40 +00:00
Fabio Tomat
907431da3d Update Friulian translation 2019-03-04 13:33:49 +00:00
Sebastian Dröge
a092dba5f8 Merge branch 'gmarshal-cleanup' into 'master'
Clean up gmarshal.[ch]

See merge request GNOME/glib!703
2019-03-04 13:00:27 +00:00
Matthias Clasen
d7145866a9 Merge branch 'keyfile-backend-dir-permissions' into 'master'
keyfile settings: Use tighter permissions

Closes #1658

See merge request GNOME/glib!604
2019-03-04 12:41:54 +00:00
Philip Withnall
ab93f3f86a gmarshal: Move marshaller documentation comments to above functions
Grouping things together makes them easier to find and keep up to date.
This doesn’t modify any of the comments or make any functional changes.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-03-04 12:33:17 +00:00
Philip Withnall
23f042d284 gmarshal: Drop trailing whitespace from gmarshal.c
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-03-04 12:33:17 +00:00