don't recognize "" as a valid engine for certain odd GTK themes (see bug

2008-11-30  Jens Granseuer  <jensgr@gmx.net>

	* gtkrc-utils.c: (gtkrc_get_details): don't recognize "" as a valid
	engine for certain odd GTK themes (see bug #315286 for an example)

svn path=/trunk/; revision=9157
This commit is contained in:
Jens Granseuer 2008-11-30 12:58:38 +00:00 committed by Jens Granseuer
parent 934dce46c3
commit ffaf3ebc86
2 changed files with 6 additions and 1 deletions

View file

@ -149,7 +149,7 @@ gtkrc_get_details (gchar *filename, GSList **engines, GSList **symbolic_colors)
else if (scanner->value.v_symbol == ENGINE_SYMBOL)
{
string_token = g_scanner_get_next_token (scanner);
if (string_token != G_TOKEN_STRING)
if (string_token != G_TOKEN_STRING || scanner->value.v_string[0] == '\0')
continue;
if (!g_slist_find_custom (*engines, scanner->value.v_string, (GCompareFunc) strcmp))
*engines = g_slist_append (*engines, g_strdup (scanner->value.v_string));