[glib] GKeyfileSettingsBackend: Use a directory monitor
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GKeyfileSettingsBackend: Use a directory monitor
- Date: Sun, 22 Dec 2013 05:45:37 +0000 (UTC)
commit 41a8296e111595c5902f607cda47c1d5d14ac405
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Dec 22 00:43:44 2013 -0500
GKeyfileSettingsBackend: Use a directory monitor
GKeyfileSettingsBackend was using a file monitor to monitor
the parent directory of its keyfile.
gio/gkeyfilesettingsbackend.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gio/gkeyfilesettingsbackend.c b/gio/gkeyfilesettingsbackend.c
index 6f97da4..2246e78 100644
--- a/gio/gkeyfilesettingsbackend.c
+++ b/gio/gkeyfilesettingsbackend.c
@@ -538,7 +538,8 @@ g_keyfile_settings_backend_class_init (GKeyfileSettingsBackendClass *class)
class->get_permission = g_keyfile_settings_backend_get_permission;
/* No need to implement subscribed/unsubscribe: the only point would be to
* stop monitoring the file when there's no GSettings anymore, which is no
- * big win. */
+ * big win.
+ */
}
static void
@@ -642,8 +643,8 @@ g_keyfile_settings_backend_new (const gchar *filename,
kfsb->dir = g_file_get_parent (kfsb->file);
g_file_make_directory_with_parents (kfsb->dir, NULL, NULL);
- kfsb->file_monitor = g_file_monitor_file (kfsb->file, 0, NULL, NULL);
- kfsb->dir_monitor = g_file_monitor_file (kfsb->dir, 0, NULL, NULL);
+ kfsb->file_monitor = g_file_monitor (kfsb->file, 0, NULL, NULL);
+ kfsb->dir_monitor = g_file_monitor (kfsb->dir, 0, NULL, NULL);
kfsb->prefix_len = strlen (root_path);
kfsb->prefix = g_strdup (root_path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]