summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Untz <vuntz@gnome.org>2010-04-15 22:01:07 -0400
committerVincent Untz <vuntz@gnome.org>2010-04-15 22:21:05 -0400
commite28f5a55b0778f552dbfc5bb0b599ad2fa8d8a84 (patch)
treea6433f7ea5e467e6cf5e915b92a7a472b2bba6ff
parentdd19563fe3dbef469b09e1f431653d5a9fb1e8b6 (diff)
downloadgconf-e28f5a55b0778f552dbfc5bb0b599ad2fa8d8a84.tar.gz
[gsettings] Improve comments
-rw-r--r--gsettings/gconfsettingsbackend.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gsettings/gconfsettingsbackend.c b/gsettings/gconfsettingsbackend.c
index 0d32705a..70eff7d0 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;