mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-24 08:30:04 +01:00
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:
parent
06077435c9
commit
f2878327f4
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user