Free the engine and color scheme lists. Removed some bogus old code that

2007-03-04  Benjamin Berg  <benjamin@sipsolutions.net>

	* gnome-theme-details.c: (update_color_scheme_tab):
	Free the engine and color scheme lists.
	Removed some bogus old code that caused the current theme to be
	checked instead of the new one.

svn path=/trunk/; revision=7360
This commit is contained in:
Benjamin Berg 2007-03-04 19:59:56 +00:00 committed by Benjamin Berg
parent bc8e3ee007
commit 36c9732484
2 changed files with 12 additions and 6 deletions

View file

@ -1,3 +1,10 @@
2007-03-04 Benjamin Berg <benjamin@sipsolutions.net>
* gnome-theme-details.c: (update_color_scheme_tab):
Free the engine and color scheme lists.
Removed some bogus old code that caused the current theme to be
checked instead of the new one.
2007-03-04 Thomas Wood <thos@gnome.org>
* Makefile.am:

View file

@ -212,7 +212,7 @@ update_color_scheme_tab (const gchar *theme)
GSList *engines = NULL;
gboolean fg, bg, base, text, fg_s, bg_s, enable_colors;
gchar *filename;
gchar *theme_name = NULL;
gchar *theme_name = NULL;
GtkSettings *settings;
GladeXML *dialog;
@ -225,11 +225,6 @@ update_color_scheme_tab (const gchar *theme)
}
filename = gtkrc_find_named (theme);
settings = gtk_settings_get_default ();
g_object_get (G_OBJECT (settings), "gtk-theme-name", &theme_name, NULL);
filename = gtkrc_find_named (theme_name);
gtkrc_get_details (filename, &engines, &symbolic_colors);
fg = (g_slist_find_custom (symbolic_colors, "fg_color", g_str_equal) != NULL);
bg = (g_slist_find_custom (symbolic_colors, "bg_color", g_str_equal) != NULL);
@ -248,6 +243,10 @@ update_color_scheme_tab (const gchar *theme)
else
gtk_widget_show (WID ("color_scheme_message_hbox"));
g_slist_foreach (engines, (GFunc) g_free, NULL);
g_slist_free (engines);
g_slist_foreach (symbolic_colors, (GFunc) g_free, NULL);
g_slist_free (symbolic_colors);
g_free (filename);
g_free (theme_name);
}