make sure we have a notification theme before trying to save it (bug

2008-08-12  Jens Granseuer  <jensgr@gmx.net>

	* gnome-theme-apply.c: (gnome_meta_theme_set): make sure we have a
	notification theme before trying to save it (bug #547448)

svn path=/trunk/; revision=8855
This commit is contained in:
Jens Granseuer 2008-08-12 16:45:22 +00:00 committed by Jens Granseuer
parent 51825e82fc
commit 71e3280c3c
2 changed files with 12 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2008-08-12 Jens Granseuer <jensgr@gmx.net>
* gnome-theme-apply.c: (gnome_meta_theme_set): make sure we have a
notification theme before trying to save it (bug #547448)
2008-08-03 Jens Granseuer <jensgr@gmx.net>
* gnome-theme-apply.c: (gnome_meta_theme_set): if the metatheme loaded

View file

@ -100,12 +100,15 @@ gnome_meta_theme_set (GnomeThemeMetaInfo *meta_theme_info)
g_free (old_key);
/* set the notification theme */
old_key = gconf_client_get_string (client, NOTIFICATION_THEME_KEY, NULL);
if (compare (old_key, meta_theme_info->notification_theme_name))
if (meta_theme_info->notification_theme_name != NULL)
{
gconf_client_set_string (client, NOTIFICATION_THEME_KEY, meta_theme_info->notification_theme_name, NULL);
old_key = gconf_client_get_string (client, NOTIFICATION_THEME_KEY, NULL);
if (compare (old_key, meta_theme_info->notification_theme_name))
{
gconf_client_set_string (client, NOTIFICATION_THEME_KEY, meta_theme_info->notification_theme_name, NULL);
}
g_free (old_key);
}
g_free (old_key);
/* Set the cursor theme key */
#ifdef HAVE_XCURSOR