gfilemonitor: Fix value of GFileMonitor:cancelled via g_object_get_property()

It was hard-coded to return `FALSE` for some reason. Fix that.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
Philip Withnall 2025-02-13 18:58:30 +00:00
parent 06077435c9
commit f2878327f4
No known key found for this signature in database
GPG Key ID: C5C42CFB268637CA

View File

@ -102,6 +102,8 @@ g_file_monitor_get_property (GObject *object,
GValue *value,
GParamSpec *pspec)
{
GFileMonitor *self = G_FILE_MONITOR (object);
switch ((GFileMonitorProperty) prop_id)
{
case PROP_RATE_LIMIT:
@ -110,9 +112,7 @@ g_file_monitor_get_property (GObject *object,
break;
case PROP_CANCELLED:
//g_mutex_lock (&fms->lock);
g_value_set_boolean (value, FALSE);//fms->cancelled);
//g_mutex_unlock (&fms->lock);
g_value_set_boolean (value, g_file_monitor_is_cancelled (self));
break;
default: