summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-10-27 15:44:51 +0200
committerStefano Karapetsas <[email protected]>2012-10-27 15:44:51 +0200
commit44205a3b8439614e1a2b176006e9f8e6a6c49439 (patch)
tree1ab2ed6efffbaa7b6e305120457d7cefbcb71b4b
parentf5946af8359cebfebb23f2174678cbdc7c31d3eb (diff)
downloadmarco-44205a3b8439614e1a2b176006e9f8e6a6c49439.tar.bz2
marco-44205a3b8439614e1a2b176006e9f8e6a6c49439.tar.xz
schema-id is new in glib 2.32
-rw-r--r--src/core/prefs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/prefs.c b/src/core/prefs.c
index 25bdaa2d..7ef9db3c 100644
--- a/src/core/prefs.c
+++ b/src/core/prefs.c
@@ -929,7 +929,11 @@ change_notify (GSettings *settings,
}
gchar *schema_name = NULL;
+#if GLIB_CHECK_VERSION (2, 32, 0)
g_object_get (settings, "schema-id", &schema_name, NULL);
+#else
+ g_object_get (settings, "schema", &schema_name, NULL);
+#endif
if (g_strcmp0 (schema_name, KEY_WINDOW_BINDINGS_SCHEMA) == 0 ||
g_strcmp0 (schema_name, KEY_SCREEN_BINDINGS_SCHEMA) == 0)