no need for an expensive parse to initialize the colors

2007-08-02  Jens Granseuer  <jensgr@gmx.net>

	* gnome-theme-info.c: (gnome_theme_color_scheme_parse): no need for an
	expensive parse to initialize the colors

svn path=/trunk/; revision=7949
This commit is contained in:
Jens Granseuer 2007-08-02 21:26:03 +00:00 committed by Jens Granseuer
parent 1ab61b2bbc
commit d31c4f7b75
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2007-08-02 Jens Granseuer <jensgr@gmx.net>
* gnome-theme-info.c: (gnome_theme_color_scheme_parse): no need for an
expensive parse to initialize the colors
2007-08-02 Jens Granseuer <jensgr@gmx.net>
* theme-thumbnail.c: (generate_metacity_theme_thumbnail),

View file

@ -1854,7 +1854,7 @@ gnome_theme_color_scheme_parse (const gchar *scheme, GdkColor *colors)
/* initialise the array */
for (i = 0; i < NUM_SYMBOLIC_COLORS; i++)
gdk_color_parse ("#000", &colors[i]);
colors[i].red = colors[i].green = colors[i].blue = 0;
/* The color scheme string consists of name:color pairs, seperated by
* newlines, so first we split the string up by new line */