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
This commit is contained in:
Havoc Pennington 2002-12-15 18:51:29 +00:00 committed by Havoc Pennington
parent d3b2764ff6
commit 07296490b4
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,8 @@
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
2002-12-13 Havoc Pennington <hp@redhat.com>
* src/tools/Makefile.am (Desktop_in_files): only install .desktop

View File

@ -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"),