[gconf] [gsettings] Improve comments
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gconf] [gsettings] Improve comments
- Date: Fri, 16 Apr 2010 13:10:22 +0000 (UTC)
commit e28f5a55b0778f552dbfc5bb0b599ad2fa8d8a84
Author: Vincent Untz <vuntz gnome org>
Date: Thu Apr 15 22:01:07 2010 -0400
[gsettings] Improve comments
gsettings/gconfsettingsbackend.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gsettings/gconfsettingsbackend.c b/gsettings/gconfsettingsbackend.c
index 0d32705..70eff7d 100644
--- a/gsettings/gconfsettingsbackend.c
+++ b/gsettings/gconfsettingsbackend.c
@@ -538,7 +538,8 @@ gconf_settings_backend_get_writable (GSettingsBackend *backend,
{
GConfSettingsBackend *gconf = GCONF_SETTINGS_BACKEND (backend);
- /* we don't support checking writabality for a whole subpath */
+ /* We don't support checking writabality for a whole subpath, so we just say
+ * it's not writable in such a case. */
if (name[strlen(name) - 1] == '/')
return FALSE;
@@ -548,7 +549,8 @@ gconf_settings_backend_get_writable (GSettingsBackend *backend,
static char *
gconf_settings_backend_get_gconf_path_from_name (const gchar *name)
{
- /* Note: we don't want trailing slash */
+ /* We don't want trailing slash since gconf directories shouldn't have a
+ * trailing slash. */
if (name[strlen(name) - 1] != '/')
{
const gchar *slash;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]