diff options
author | Havoc Pennington <hp@pobox.com> | 2002-12-15 18:51:29 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2002-12-15 18:51:29 +0000 |
commit | 07296490b479df479e3e6ebc280737b41f0be8e2 (patch) | |
tree | 9c64a8de307589075f1b76c36e2df7c4e6d3ee09 /src | |
parent | d3b2764ff6a1da92a0d8a31f8ca14f34c737deef (diff) | |
download | metacity-07296490b479df479e3e6ebc280737b41f0be8e2.tar.gz |
don't pass NULL string to gconf_client_set_string #101237
2002-12-15 Havoc Pennington <hp@pobox.com>
* src/prefs.c (meta_prefs_change_workspace_name): don't pass NULL
string to gconf_client_set_string #101237
Diffstat (limited to 'src')
-rw-r--r-- | src/prefs.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/prefs.c b/src/prefs.c index 380e8fb3..2a88164e 100644 --- a/src/prefs.c +++ b/src/prefs.c @@ -1711,10 +1711,15 @@ meta_prefs_change_workspace_name (int i, key = gconf_key_for_workspace_name (i); err = NULL; - gconf_client_set_string (default_client, - key, name, - &err); + if (name != NULL) + gconf_client_set_string (default_client, + key, name, + &err); + else + gconf_client_unset (default_client, + key, &err); + if (err) { meta_warning (_("Error setting name for workspace %d to \"%s\": %s\n"), |