mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-30 12:23:06 +02:00
Speed up property change notification a bit
Avoid the quark lock and hash table lookup for every emission of ::notify.
This commit is contained in:
parent
41c0d15a6d
commit
00933dfc9c
@ -1050,7 +1050,6 @@ g_object_finalize (GObject *object)
|
||||
#endif /* G_ENABLE_DEBUG */
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
g_object_dispatch_properties_changed (GObject *object,
|
||||
guint n_pspecs,
|
||||
@ -1059,7 +1058,7 @@ g_object_dispatch_properties_changed (GObject *object,
|
||||
guint i;
|
||||
|
||||
for (i = 0; i < n_pspecs; i++)
|
||||
g_signal_emit (object, gobject_signals[NOTIFY], g_quark_from_string (pspecs[i]->name), pspecs[i]);
|
||||
g_signal_emit (object, gobject_signals[NOTIFY], g_param_spec_get_name_quark (pspecs[i]), pspecs[i]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user