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
This commit is contained in:
Thomas Thurman 2008-04-03 17:36:32 +00:00 committed by Thomas James Alexander Thurman
parent 5fa7c76ba0
commit d372cf598a
2 changed files with 9 additions and 0 deletions

View File

@ -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> 2008-03-29 Lucas Rocha <lucasr.at.mundo@gmail.com>
* src/metacity.desktop.in, src/Makefile.am: make Metacity * src/metacity.desktop.in, src/Makefile.am: make Metacity

View File

@ -587,6 +587,10 @@ handle_preference_update_bool (const gchar *key, GConfValue *value)
/* Didn't recognise that key. */ /* Didn't recognise that key. */
return FALSE; return FALSE;
if (cursor->target==NULL)
/* No work for us to do. */
return TRUE;
if (value==NULL) if (value==NULL)
{ {
/* Value was destroyed; let's get out of here. */ /* Value was destroyed; let's get out of here. */