NetworkManager/libnm
Benjamin Berg 4bcb4c4ef2 Add calls to g_simple_async_result_set_check_cancellable
If an operation is cancelled through the GCancellable, then the idiom is
that the operation is always cancelled, even if it has finished
successfully. To ensure this is the case, add calls to
g_simple_async_result_set_check_cancellable everywhere.

Without this, e.g. gnome-control-center will crash when switching away
from the power panel quickly, as the NMClient creation finishes
asynchronously and g-c-c assume that G_IO_ERROR_CANCELLED is returned to
ensure it doesn't access the now invalid user_data parameter.

https://bugzilla.gnome.org/show_bug.cgi?id=794088
(cherry picked from commit 26c215e22d)
(cherry picked from commit e1b99d9201)
(cherry picked from commit 2e62853509)
2018-03-08 15:36:42 +01:00
..
tests libnm/tests: increase timeout in nm-client test 2016-11-14 20:22:23 +01:00
generate-plugin-docs.pl libnm/generate-plugin-docs: don't replace newlines with spaces 2016-11-21 18:34:50 +01:00
generate-setting-docs.py build: fix build with older gi 2017-01-19 14:18:26 +01:00
libnm.pc.in libnm,pkg-config: provide a variable with VPN service directory 2015-08-19 15:13:11 +02:00
libnm.ver libnm-core: add NMSettingMacsec 2017-01-16 17:37:14 +01:00
NetworkManager.h libnm-core: add NMSettingMacsec 2017-01-16 17:37:14 +01:00
nm-access-point.c libnm: use the o.fd.DBus.ObjectManager API for object management 2016-11-10 16:48:48 +01:00
nm-access-point.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-active-connection.c libnm: use the o.fd.DBus.ObjectManager API for object management 2016-11-10 16:48:48 +01:00
nm-active-connection.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-client.c Add calls to g_simple_async_result_set_check_cancellable 2018-03-08 15:36:42 +01:00
nm-client.h libnm: implement support for DNS manager properties 2016-12-12 22:06:24 +01:00
nm-dbus-helpers.c Add calls to g_simple_async_result_set_check_cancellable 2018-03-08 15:36:42 +01:00
nm-dbus-helpers.h libnm: use the o.fd.DBus.ObjectManager API for object management 2016-11-10 16:48:48 +01:00
nm-device-adsl.c libnm: use the o.fd.DBus.ObjectManager API for object management 2016-11-10 16:48:48 +01:00
nm-device-adsl.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-bond.c libnm: use the o.fd.DBus.ObjectManager API for object management 2016-11-10 16:48:48 +01:00
nm-device-bond.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-bridge.c libnm: use the o.fd.DBus.ObjectManager API for object management 2016-11-10 16:48:48 +01:00
nm-device-bridge.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-bt.c libnm: use the o.fd.DBus.ObjectManager API for object management 2016-11-10 16:48:48 +01:00
nm-device-bt.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-ethernet.c libnm: use the o.fd.DBus.ObjectManager API for object management 2016-11-10 16:48:48 +01:00
nm-device-ethernet.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-generic.c libnm: use the o.fd.DBus.ObjectManager API for object management 2016-11-10 16:48:48 +01:00
nm-device-generic.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-infiniband.c libnm: use the o.fd.DBus.ObjectManager API for object management 2016-11-10 16:48:48 +01:00
nm-device-infiniband.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-ip-tunnel.c libnm: use the o.fd.DBus.ObjectManager API for object management 2016-11-10 16:48:48 +01:00
nm-device-ip-tunnel.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-macsec.c libnm: (trivial): add missing return description in comment block 2017-01-17 10:34:16 +01:00
nm-device-macsec.h core,libnm: introduce NMDeviceMacsec 2017-01-16 17:37:14 +01:00
nm-device-macvlan.c libnm: use the o.fd.DBus.ObjectManager API for object management 2016-11-10 16:48:48 +01:00
nm-device-macvlan.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-modem.c libnm: use the o.fd.DBus.ObjectManager API for object management 2016-11-10 16:48:48 +01:00
nm-device-modem.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-olpc-mesh.c libnm: use the o.fd.DBus.ObjectManager API for object management 2016-11-10 16:48:48 +01:00
nm-device-olpc-mesh.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-private.h libnm: use the o.fd.DBus.ObjectManager API for object management 2016-11-10 16:48:48 +01:00
nm-device-team.c libnm: use the o.fd.DBus.ObjectManager API for object management 2016-11-10 16:48:48 +01:00
nm-device-team.h team: expose current device configuration through D-Bus and nmcli 2016-05-26 09:16:46 +02:00
nm-device-tun.c libnm: use the o.fd.DBus.ObjectManager API for object management 2016-11-10 16:48:48 +01:00
nm-device-tun.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-vlan.c libnm: use the o.fd.DBus.ObjectManager API for object management 2016-11-10 16:48:48 +01:00
nm-device-vlan.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-vxlan.c libnm: use the o.fd.DBus.ObjectManager API for object management 2016-11-10 16:48:48 +01:00
nm-device-vxlan.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-wifi.c Add calls to g_simple_async_result_set_check_cancellable 2018-03-08 15:36:42 +01:00
nm-device-wifi.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-wimax.c libnm: use the o.fd.DBus.ObjectManager API for object management 2016-11-10 16:48:48 +01:00
nm-device-wimax.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device.c Add calls to g_simple_async_result_set_check_cancellable 2018-03-08 15:36:42 +01:00
nm-device.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-dhcp-config.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-dhcp-config.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-dhcp4-config.c libnm: use the o.fd.DBus.ObjectManager API for object management 2016-11-10 16:48:48 +01:00
nm-dhcp4-config.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-dhcp6-config.c libnm: use the o.fd.DBus.ObjectManager API for object management 2016-11-10 16:48:48 +01:00
nm-dhcp6-config.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-dns-manager.c libnm/dns: fix memleak in demarshal_dns_configuration 2016-12-14 13:19:37 +01:00
nm-dns-manager.h libnm: implement support for DNS manager properties 2016-12-12 22:06:24 +01:00
nm-ip-config.c libnm: coerce empty strings to NULL for D-Bus properties 2016-10-24 10:14:02 +02:00
nm-ip-config.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-ip4-config.c libnm: use the o.fd.DBus.ObjectManager API for object management 2016-11-10 16:48:48 +01:00
nm-ip4-config.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-ip6-config.c libnm: use the o.fd.DBus.ObjectManager API for object management 2016-11-10 16:48:48 +01:00
nm-ip6-config.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-manager.c Add calls to g_simple_async_result_set_check_cancellable 2018-03-08 15:36:42 +01:00
nm-manager.h libnm: use the o.fd.DBus.ObjectManager API for object management 2016-11-10 16:48:48 +01:00
nm-object-private.h libnm: use the o.fd.DBus.ObjectManager API for object management 2016-11-10 16:48:48 +01:00
nm-object.c Add calls to g_simple_async_result_set_check_cancellable 2018-03-08 15:36:42 +01:00
nm-object.h libnm: use the o.fd.DBus.ObjectManager API for object management 2016-11-10 16:48:48 +01:00
nm-remote-connection-private.h libnm: add libnm/libnm-core (part 1) 2014-08-01 14:34:04 -04:00
nm-remote-connection.c Add calls to g_simple_async_result_set_check_cancellable 2018-03-08 15:36:42 +01:00
nm-remote-connection.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-remote-settings.c Add calls to g_simple_async_result_set_check_cancellable 2018-03-08 15:36:42 +01:00
nm-remote-settings.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-secret-agent-old.c Add calls to g_simple_async_result_set_check_cancellable 2018-03-08 15:36:42 +01:00
nm-secret-agent-old.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-types.h core,libnm: introduce NMDeviceMacsec 2017-01-16 17:37:14 +01:00
nm-vpn-connection.c all: rename the introspection data to use the interface paths in names 2016-11-23 15:43:42 +01:00
nm-vpn-connection.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-vpn-editor.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-vpn-editor.h all: modify line separator comments to be 80 chars wide 2016-10-03 12:01:15 +02:00
nm-vpn-plugin-old.c all: rename the introspection data to use the interface paths in names 2016-11-23 15:43:42 +01:00
nm-vpn-plugin-old.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-vpn-service-plugin.c all: cleanup switch fall-through comments for -Wimplicit-fallthrough warning 2017-02-06 17:54:45 +01:00
nm-vpn-service-plugin.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-wimax-nsp.c libnm: use the o.fd.DBus.ObjectManager API for object management 2016-11-10 16:48:48 +01:00
nm-wimax-nsp.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00