mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -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,9 +1711,14 @@ 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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user