we don't need the engine stuff, so don't retrieve it in the first place
2007-06-10 Jens Granseuer <jensgr@gmx.net> * appearance-style.c: (check_color_schemes_enabled): we don't need the engine stuff, so don't retrieve it in the first place svn path=/trunk/; revision=7713
This commit is contained in:
parent
934b33e8c7
commit
196cc925db
2 changed files with 7 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-06-10 Jens Granseuer <jensgr@gmx.net>
|
||||
|
||||
* appearance-style.c: (check_color_schemes_enabled): we don't need the
|
||||
engine stuff, so don't retrieve it in the first place
|
||||
|
||||
2007-06-10 Jens Granseuer <jensgr@gmx.net>
|
||||
|
||||
* appearance-main.c: (init_appearance_data), (main):
|
||||
|
|
|
@ -422,14 +422,14 @@ check_color_schemes_enabled (GtkSettings *settings,
|
|||
{
|
||||
gchar *theme = NULL;
|
||||
gchar *filename;
|
||||
GSList *symbolic_colors = NULL, *engines = NULL;
|
||||
GSList *symbolic_colors = NULL;
|
||||
gboolean fg, bg, base, text, fg_s, bg_s, enable_colors;
|
||||
|
||||
g_object_get (G_OBJECT (settings), "gtk-theme-name", &theme, NULL);
|
||||
filename = gtkrc_find_named (theme);
|
||||
g_free (theme);
|
||||
|
||||
gtkrc_get_details (filename, &engines, &symbolic_colors);
|
||||
gtkrc_get_details (filename, NULL, &symbolic_colors);
|
||||
g_free (filename);
|
||||
|
||||
fg = (g_slist_find_custom (symbolic_colors, "fg_color", g_str_equal) != NULL);
|
||||
|
@ -440,8 +440,6 @@ check_color_schemes_enabled (GtkSettings *settings,
|
|||
bg_s = (g_slist_find_custom (symbolic_colors, "selected_bg_color", g_str_equal) != NULL);
|
||||
g_slist_foreach (symbolic_colors, (GFunc) g_free, NULL);
|
||||
g_slist_free (symbolic_colors);
|
||||
g_slist_foreach (engines, (GFunc) g_free, NULL);
|
||||
g_slist_free (engines);
|
||||
|
||||
enable_colors = (fg && bg && base && text && fg_s && bg_s);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue