19894 Commits

Author SHA1 Message Date
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
Philip Withnall
251430d467 gmarshal: Add copyright headers to gmarshal.[ch]
They were originally generated by glib-genmarshal, which documents its
output as being under the same license as the containing project. In
this case, that’s LGPL.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-03-04 12:33:17 +00:00
Philip Withnall
1a8e84c540 gmarshal: Drop references to gmarshal.list
It was removed in commit 9c66e65b29d5fd17dcfd77c4b010aa792b2e1d5a.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-03-04 12:33:17 +00:00
Philip Withnall
54317c9118 tests: Run /gsettings/keyfile test in a temporary directory
Don’t pollute the build directory with files generated by running the
test.

Note that there are still other tests in the gsettings.c test suite
which use the build directory, but fixing them is a bit more involved
than I have time for right now. This is a step in the right direction.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-03-04 12:28:37 +00:00
Matthias Clasen
5e4da714f0 keyfile settings: Use tighter permissions
When creating directories, create them with 700 permissions,
instead of 777.

Closes: #1658
2019-03-04 12:28:37 +00:00
Philip Withnall
95e00c7581 docs: Various markup improvements to glib-mkenums man page
Signed-off-by: Philip Withnall <withnall@endlessm.com>
2019-03-04 11:14:22 +00:00
Philip Withnall
c3ac761a18 build: Rename gobjectenumtypes.[ch] to glib-enumtypes.[ch]
To reflect the fact that they contain the GObject types for various
enums defined in libglib.

See https://gitlab.gnome.org/GNOME/glib/merge_requests/481#note_451086.

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

Helps: GNOME/gobject-introspection#267
2019-03-04 11:12:59 +00:00
Philip Withnall
1f793e9680 Merge branch 'code-owners-more' into 'master'
docs: Add Ting-Wei Lan as a BSD/kqueue code reviewer

See merge request GNOME/glib!701
2019-03-04 11:12:57 +00:00
Philip Withnall
175f0243ed docs: Add Ting-Wei Lan as a BSD/kqueue code reviewer
As agreed on
https://gitlab.gnome.org/GNOME/glib/issues/1668#note_450631. Thanks!

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

Helps #1668
2019-03-04 10:38:17 +00:00
Марко Костић
f90e1f317e Update Serbian translation 2019-03-03 16:23:22 +00:00
Daniel Șerbănescu
59954adf6a Update Romanian translation 2019-03-02 20:05:57 +00:00
Марко Костић
6b165f0c3e Update Serbian translation 2019-03-01 15:14:49 +00:00
Philip Withnall
fe01ce2c8d Merge branch 'krnowak/closures-fix' into 'master'
tests: Fix closure-refcount to preserve old semantics

See merge request GNOME/glib!699
2019-02-28 13:32:35 +00:00
Marek Cernocky
6575a9ab79 Updated Czech translation 2019-02-28 12:56:37 +01:00
Krzesimir Nowak
d687a45704 tests: Fix closure-refcount to preserve old semantics
The threads used to iterate at least 10000 times before setting the
"seen thread" flag to true. After porting they inadvertently did that
in the first iteration.
2019-02-28 07:05:29 +01:00
Changwoo Ryu
70cfc9d24c Update Korean translation 2019-02-28 03:15:07 +00:00
Tim Sabsch
acf32b13bb Update German translation 2019-02-27 18:22:53 +00:00
Philip Withnall
7536bacb3d Merge branch 'refcount-fixups' into 'master'
Move closures refcount test to gobject/tests/

See merge request GNOME/glib!696
2019-02-27 16:47:58 +00:00
Michael Catanzaro
8f1cbda085 Merge branch 'wip/tingping/threaded-resolver-unused-pool' into 'master'
gthreadedresolver: Remove unused thread pool

See merge request GNOME/glib!698
2019-02-27 15:53:51 +00:00