[glib] GSettings: remove key length restrictions
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GSettings: remove key length restrictions
- Date: Tue, 19 Jul 2011 14:18:39 +0000 (UTC)
commit fe6dad271b06e6243d17137c2e0991f56a256cca
Author: Ryan Lortie <desrt desrt ca>
Date: Tue Jul 19 16:12:30 2011 +0200
GSettings: remove key length restrictions
The key length now stands effectively unlimited at 1024 characters.
https://bugzilla.gnome.org/show_bug.cgi?id=654536
gio/glib-compile-schemas.c | 4 ++--
gio/gsettings.c | 3 +--
2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/gio/glib-compile-schemas.c b/gio/glib-compile-schemas.c
index 8d20bbf..72bc7ca 100644
--- a/gio/glib-compile-schemas.c
+++ b/gio/glib-compile-schemas.c
@@ -783,10 +783,10 @@ is_valid_keyname (const gchar *key,
return FALSE;
}
- if (i > 32)
+ if (i > 1024)
{
g_set_error (error, G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT,
- _("invalid name '%s': maximum length is 32"), key);
+ _("invalid name '%s': maximum length is 1024"), key);
return FALSE;
}
diff --git a/gio/gsettings.c b/gio/gsettings.c
index 24dc5ca..251fe20 100644
--- a/gio/gsettings.c
+++ b/gio/gsettings.c
@@ -77,8 +77,7 @@
* values as #GVariant, and allows any #GVariantType for keys. Key names
* are restricted to lowercase characters, numbers and '-'. Furthermore,
* the names must begin with a lowercase character, must not end
- * with a '-', and must not contain consecutive dashes. Key names can
- * be up to 32 characters long.
+ * with a '-', and must not contain consecutive dashes.
*
* Similar to GConf, the default values in GSettings schemas can be
* localized, but the localized values are stored in gettext catalogs
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]