mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-25 00:10:44 +01:00
libnm: use G_PARAM_EXPLICIT_NOTIFY for direct bytes properties
For doing this, it's important to review that no set_property() implementation exists, which now would miss to emit the notification.
This commit is contained in:
parent
ecff549ba9
commit
ebb8602729
2 changed files with 8 additions and 7 deletions
|
|
@ -822,12 +822,12 @@ _nm_properties_override(GArray *properties_override, const NMSettInfoProperty *p
|
|||
~(NM_SETTING_PARAM_SECRET | NM_SETTING_PARAM_INFERRABLE \
|
||||
| NM_SETTING_PARAM_FUZZY_IGNORE))); \
|
||||
\
|
||||
_param_spec = \
|
||||
g_param_spec_boxed("" prop_name "", \
|
||||
"", \
|
||||
"", \
|
||||
G_TYPE_BYTES, \
|
||||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | (param_flags)); \
|
||||
_param_spec = g_param_spec_boxed("" prop_name "", \
|
||||
"", \
|
||||
"", \
|
||||
G_TYPE_BYTES, \
|
||||
G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY \
|
||||
| G_PARAM_STATIC_STRINGS | (param_flags)); \
|
||||
\
|
||||
(obj_properties)[(prop_id)] = _param_spec; \
|
||||
\
|
||||
|
|
|
|||
|
|
@ -4919,7 +4919,8 @@ check_done:;
|
|||
NM_VALUE_TYPE_INT32,
|
||||
NM_VALUE_TYPE_INT64,
|
||||
NM_VALUE_TYPE_UINT64,
|
||||
NM_VALUE_TYPE_STRING);
|
||||
NM_VALUE_TYPE_STRING,
|
||||
NM_VALUE_TYPE_BYTES);
|
||||
|
||||
if (NM_FLAGS_HAS(sip->param_spec->flags, G_PARAM_EXPLICIT_NOTIFY)) {
|
||||
g_assert(expected);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue