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

View File

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