From 06077435c98ecffc8a10a5b770f4e63a0c58c8b8 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 13 Feb 2025 18:57:58 +0000 Subject: [PATCH] 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 --- gio/gfilemonitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/gfilemonitor.c b/gio/gfilemonitor.c index e3028935b..5ba244e89 100644 --- a/gio/gfilemonitor.c +++ b/gio/gfilemonitor.c @@ -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;