st: Specify G_PARAM_EXPLICIT_NOTIFY where appropriate

We are now consistently calling notify() when a property does change.

With that we can opt out of g_object_set()'s implicit change notifications,
so that notify is only emitted when a property *actually* changes.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2168>
This commit is contained in:
Florian Müllner
2022-02-09 13:59:15 +01:00
committed by Marge Bot
parent bfb52aaf9d
commit 5a23c96bd9
15 changed files with 46 additions and 45 deletions

View File

@ -298,7 +298,7 @@ st_settings_class_init (StSettingsClass *klass)
"Slow down factor",
"Factor applied to all animation durations",
EPSILON, G_MAXDOUBLE, 1.0,
ST_PARAM_READWRITE);
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
/**
* StSettings:disable-show-password: