if the metatheme loaded doesn't define a notification theme don't set it

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

	* gnome-theme-apply.c: (gnome_meta_theme_set): if the metatheme loaded
	doesn't define a notification theme don't set it to "standard" (bug
	#546036)

svn path=/trunk/; revision=8834
This commit is contained in:
Jens Granseuer 2008-08-03 08:23:24 +00:00 committed by Jens Granseuer
parent bdcf243ddf
commit 05ce6eaabe
2 changed files with 8 additions and 6 deletions

View file

@ -1,3 +1,9 @@
2008-08-03 Jens Granseuer <jensgr@gmx.net>
* gnome-theme-apply.c: (gnome_meta_theme_set): if the metatheme loaded
doesn't define a notification theme don't set it to "standard" (bug
#546036)
2008-07-29 Jens Granseuer <jensgr@gmx.net>
* file-transfer-dialog.c: (file_transfer_job_destroy),

View file

@ -43,7 +43,6 @@ gnome_meta_theme_set (GnomeThemeMetaInfo *meta_theme_info)
{
GConfClient *client;
gchar *old_key;
gchar *new_key;
gint old_key_int;
GnomeWindowManager *window_manager;
GnomeWMSettings wm_settings;
@ -102,12 +101,9 @@ gnome_meta_theme_set (GnomeThemeMetaInfo *meta_theme_info)
/* set the notification theme */
old_key = gconf_client_get_string (client, NOTIFICATION_THEME_KEY, NULL);
new_key = meta_theme_info->notification_theme_name;
if (new_key == NULL)
new_key = "standard";
if (compare (old_key, new_key))
if (compare (old_key, meta_theme_info->notification_theme_name))
{
gconf_client_set_string (client, NOTIFICATION_THEME_KEY, new_key, NULL);
gconf_client_set_string (client, NOTIFICATION_THEME_KEY, meta_theme_info->notification_theme_name, NULL);
}
g_free (old_key);