summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Thurman <tthurman@gnome.org>2008-04-03 17:36:32 +0000
committerThomas James Alexander Thurman <tthurman@src.gnome.org>2008-04-03 17:36:32 +0000
commitd372cf598abf3e5658d818b2901e778faab5c050 (patch)
treea28c9723bf3209276936f309cf60623469dd1711
parent5fa7c76ba0ecdde5a2e5f3cd0e2a99079601bd96 (diff)
downloadmetacity-d372cf598abf3e5658d818b2901e778faab5c050.tar.gz
preferences which have a null target don't get updated! (#526016)
2008-04-03 Thomas Thurman <tthurman@gnome.org> * src/core/prefs.c (handle_preference_update_bool): preferences which have a null target don't get updated! (#526016) svn path=/trunk/; revision=3673
-rw-r--r--ChangeLog5
-rw-r--r--src/core/prefs.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f63834ef..a9159b71 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-04-03 Thomas Thurman <tthurman@gnome.org>
+
+ * src/core/prefs.c (handle_preference_update_bool): preferences
+ which have a null target don't get updated! (#526016)
+
2008-03-29 Lucas Rocha <lucasr.at.mundo@gmail.com>
* src/metacity.desktop.in, src/Makefile.am: make Metacity
diff --git a/src/core/prefs.c b/src/core/prefs.c
index 4ed06b6a..7a1473f9 100644
--- a/src/core/prefs.c
+++ b/src/core/prefs.c
@@ -586,6 +586,10 @@ handle_preference_update_bool (const gchar *key, GConfValue *value)
if (cursor->key==NULL)
/* Didn't recognise that key. */
return FALSE;
+
+ if (cursor->target==NULL)
+ /* No work for us to do. */
+ return TRUE;
if (value==NULL)
{