mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
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:
parent
d3b2764ff6
commit
07296490b4
@ -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
|
||||
|
11
src/prefs.c
11
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"),
|
||||
|
Loading…
Reference in New Issue
Block a user