Commit c1e2a8d7 authored by Matt Watson's avatar Matt Watson Committed by Cosimo Cecchi

resource file: add cancel to dummy monitor

gfilemonitor has a cancel vfunc and will call into the in dispose.
If we don't stub it out we get a segfault.
parent 50645b72
......@@ -595,6 +595,12 @@ GType g_resource_file_monitor_get_type (void);
G_DEFINE_TYPE (GResourceFileMonitor, g_resource_file_monitor, G_TYPE_FILE_MONITOR)
static gboolean
g_resource_file_monitor_cancel (GFileMonitor *monitor)
{
return TRUE;
}
static void
g_resource_file_monitor_init (GResourceFileMonitor *monitor)
{
......@@ -603,6 +609,7 @@ g_resource_file_monitor_init (GResourceFileMonitor *monitor)
static void
g_resource_file_monitor_class_init (GResourceFileMonitorClass *class)
{
class->cancel = g_resource_file_monitor_cancel;
}
static GFileMonitor *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment