mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-06-21 19:54:51 +02:00
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.
This commit is contained in:
parent
50645b724a
commit
c1e2a8d727
@ -595,6 +595,12 @@ GType g_resource_file_monitor_get_type (void);
|
|||||||
|
|
||||||
G_DEFINE_TYPE (GResourceFileMonitor, g_resource_file_monitor, G_TYPE_FILE_MONITOR)
|
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
|
static void
|
||||||
g_resource_file_monitor_init (GResourceFileMonitor *monitor)
|
g_resource_file_monitor_init (GResourceFileMonitor *monitor)
|
||||||
{
|
{
|
||||||
@ -603,6 +609,7 @@ g_resource_file_monitor_init (GResourceFileMonitor *monitor)
|
|||||||
static void
|
static void
|
||||||
g_resource_file_monitor_class_init (GResourceFileMonitorClass *class)
|
g_resource_file_monitor_class_init (GResourceFileMonitorClass *class)
|
||||||
{
|
{
|
||||||
|
class->cancel = g_resource_file_monitor_cancel;
|
||||||
}
|
}
|
||||||
|
|
||||||
static GFileMonitor *
|
static GFileMonitor *
|
||||||
|
Loading…
x
Reference in New Issue
Block a user