settings: Avoid one case of g_object_notify

We already have the GParamSpec in hands, lets just use it instead
of looking it up again.
This commit is contained in:
Matthias Clasen
2015-09-07 11:34:41 -04:00
parent 7cd7257a07
commit 9b494df91e

View File

@ -2833,7 +2833,7 @@ _gtk_settings_handle_event (GdkEventSetting *event)
pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (settings), event->name);
if (pspec)
g_object_notify (G_OBJECT (settings), pspec->name);
g_object_notify_by_pspec (G_OBJECT (settings), pspec);
}
static void