NetworkManager/src/libnm-core-impl/tests
Thomas Haller 4c31c73bf6
libnm: use G_PARAM_EXPLICIT_NOTIFY for direct boolean properties
Now that we require glib 2.42, we can use G_PARAM_EXPLICIT_NOTIFY flag.
The benefit is that this flag saves a notification, when the property
value does not change.

The downside is, that implementations of set_property() must remember to
emit _notify() when required. This is somewhat alleviated by using
_nm_setting_property_set_property_direct(), which does this
automatically.

Se the flag for G_PARAM_EXPLICIT_NOTIFY for direct boolean properties.
For now, only do it for boolean properties, because of the danger of
getting this wrong. We must review all callers to make sure that they
don't implement set_properties() and don't forget to notify.
2023-12-11 13:09:15 +01:00
..
certs crypto: support EC private keys 2022-08-04 09:46:06 +02:00
meson.build build: fix linking libnm-log-null into different test programs 2021-07-05 14:51:27 +02:00
nm-core-tests-enum-types.c.template build: move "libnm-core/" to "src/" and split it 2021-02-18 19:46:51 +01:00
nm-core-tests-enum-types.h.template build: move "libnm-core/" to "src/" and split it 2021-02-18 19:46:51 +01:00
test-compare.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
test-crypto.c crypto: support EC private keys 2022-08-04 09:46:06 +02:00
test-general-enums.h all: adjust glib-mkenums annotations for automated formatting 2022-02-08 11:14:01 +01:00
test-general.c libnm: implement "{ipv4,ipv6}.dns-options" as direct STRV property 2023-11-23 17:19:10 +01:00
test-keyfile.c libnm/tests: avoid uninitialized variable warning in _invalid_option_write_handler() 2023-03-31 18:15:50 +02:00
test-secrets.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
test-setting.c libnm: use G_PARAM_EXPLICIT_NOTIFY for direct boolean properties 2023-12-11 13:09:15 +01:00
test-settings-defaults.c format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00