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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user