mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-24 08:30:04 +01:00
gfilemonitor: Emit GObject::notify by pspec rather than property name
This is equivalent, but slightly faster, as it avoids a pspec lookup. Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
parent
8ffdbb55d9
commit
06077435c9
@ -254,7 +254,7 @@ g_file_monitor_cancel (GFileMonitor *monitor)
|
||||
G_FILE_MONITOR_GET_CLASS (monitor)->cancel (monitor);
|
||||
|
||||
g_atomic_int_set (&monitor->priv->cancelled, CANCEL_STATE_CANCELLED);
|
||||
g_object_notify (G_OBJECT (monitor), "cancelled");
|
||||
g_object_notify_by_pspec (G_OBJECT (monitor), props[PROP_CANCELLED]);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user