mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-26 01:20:05 +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,
|
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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user