summaryrefslogtreecommitdiffstats
path: root/abs/core/glib2/revert-warn-glib-compile-schemas.patch
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-07 02:25:52 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-07 02:25:52 (GMT)
commitdc6575a3bf0f1eac9e11842723b0f3be0f45ef79 (patch)
tree98de77ed97dcd61c6931b7a78cd5e2a218e89cb0 /abs/core/glib2/revert-warn-glib-compile-schemas.patch
parentb770aa798aa8372bf914f5f0f4d60ec7e435e9d0 (diff)
downloadlinhes_pkgbuild-dc6575a3bf0f1eac9e11842723b0f3be0f45ef79.zip
linhes_pkgbuild-dc6575a3bf0f1eac9e11842723b0f3be0f45ef79.tar.gz
linhes_pkgbuild-dc6575a3bf0f1eac9e11842723b0f3be0f45ef79.tar.bz2
glib2 2.32.4
Diffstat (limited to 'abs/core/glib2/revert-warn-glib-compile-schemas.patch')
-rw-r--r--abs/core/glib2/revert-warn-glib-compile-schemas.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/abs/core/glib2/revert-warn-glib-compile-schemas.patch b/abs/core/glib2/revert-warn-glib-compile-schemas.patch
new file mode 100644
index 0000000..75b0510
--- /dev/null
+++ b/abs/core/glib2/revert-warn-glib-compile-schemas.patch
@@ -0,0 +1,33 @@
+From 6560b37450cd19c4a7c7b690e279fe97b7bfdcaa Mon Sep 17 00:00:00 2001
+From: Ryan Lortie <desrt@desrt.ca>
+Date: Thu, 12 Apr 2012 23:55:34 +0000
+Subject: glib-compile-schemas: warn about bad dconf paths
+
+For quite some time the recommended usage of GSettings and dconf has
+been to use paths like /org/gnome/example/. Use of /apps/ has spilled
+over from GConf and is continuing to make its way into a number of
+applications as they port.
+
+glib-compile-schemas will now warn about these types of paths being
+used. This generates a lot of noise, but hopefully it will reduce the
+number of ported applications making this mistake.
+---
+diff --git a/gio/glib-compile-schemas.c b/gio/glib-compile-schemas.c
+index cf02389..27d0181 100644
+--- a/gio/glib-compile-schemas.c
++++ b/gio/glib-compile-schemas.c
+@@ -1204,6 +1204,12 @@ parse_state_start_schema (ParseState *state,
+ return;
+ }
+
++ if (path && (g_str_has_prefix (path, "/apps/") ||
++ g_str_has_prefix (path, "/desktop/") ||
++ g_str_has_prefix (path, "/system/")))
++ g_printerr ("warning: Schema '%s' has path '%s'. Paths starting with "
++ "'/apps/', '/desktop/' or '/system/' are deprecated.\n", id, path);
++
+ state->schema_state = schema_state_new (path, gettext_domain,
+ extends, extends_name, list_of);
+
+--
+cgit v0.9.0.2