summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-12-15 18:51:29 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-12-15 18:51:29 +0000
commit07296490b479df479e3e6ebc280737b41f0be8e2 (patch)
tree9c64a8de307589075f1b76c36e2df7c4e6d3ee09 /src
parentd3b2764ff6a1da92a0d8a31f8ca14f34c737deef (diff)
downloadmetacity-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.c11
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"),