[glib/new-gsettings] Do not fail in g_settings_backend_keys_changed() if path is ""
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/new-gsettings] Do not fail in g_settings_backend_keys_changed() if path is ""
- Date: Thu, 15 Apr 2010 01:00:15 +0000 (UTC)
commit d6d1b2db9ff91c85138af0713905be8300afcf29
Author: Vincent Untz <vuntz gnome org>
Date: Wed Apr 14 20:59:26 2010 -0400
Do not fail in g_settings_backend_keys_changed() if path is ""
gio/gsettingsbackend.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gsettingsbackend.c b/gio/gsettingsbackend.c
index 27015a3..6e814df 100644
--- a/gio/gsettingsbackend.c
+++ b/gio/gsettingsbackend.c
@@ -251,7 +251,7 @@ g_settings_backend_keys_changed (GSettingsBackend *backend,
GSettingsBackendWatch *watch;
g_return_if_fail (G_IS_SETTINGS_BACKEND (backend));
- g_return_if_fail (is_path (path));
+ g_return_if_fail (path[0] == '\0' || is_path (path));
g_return_if_fail (items != NULL);
for (watch = backend->priv->watches; watch; watch = watch->next)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]