mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
Small optimization for g_object_set
We've already followed the redirection, no need to check for that again - just avoid notifying non-readable properties.
This commit is contained in:
parent
97716e7b01
commit
23e37e05d2
@ -1570,15 +1570,9 @@ object_set_property (GObject *object,
|
||||
{
|
||||
class->set_property (object, param_id, &tmp_value, pspec);
|
||||
|
||||
if (~pspec->flags & G_PARAM_EXPLICIT_NOTIFY)
|
||||
{
|
||||
GParamSpec *notify_pspec;
|
||||
|
||||
notify_pspec = get_notify_pspec (pspec);
|
||||
|
||||
if (notify_pspec != NULL)
|
||||
g_object_notify_queue_add (object, nqueue, notify_pspec);
|
||||
}
|
||||
if (~pspec->flags & G_PARAM_EXPLICIT_NOTIFY &&
|
||||
pspec->flags & G_PARAM_READABLE)
|
||||
g_object_notify_queue_add (object, nqueue, pspec);
|
||||
}
|
||||
g_value_unset (&tmp_value);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user