[glib] resource file: add cancel to dummy monitor
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] resource file: add cancel to dummy monitor
- Date: Sat, 9 Jan 2016 02:10:01 +0000 (UTC)
commit c1e2a8d72766323181c804b47547242bd70460e9
Author: Matt Watson <mattdangerw gmail com>
Date: Fri Jan 8 16:06:53 2016 -0800
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.
gio/gresourcefile.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gio/gresourcefile.c b/gio/gresourcefile.c
index f4af711..6f211f4 100644
--- a/gio/gresourcefile.c
+++ b/gio/gresourcefile.c
@@ -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 *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]