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:
parent
934dce46c3
commit
ffaf3ebc86
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
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)
|
||||||
|
|
||||||
2008-11-27 Jens Granseuer <jensgr@gmx.net>
|
2008-11-27 Jens Granseuer <jensgr@gmx.net>
|
||||||
|
|
||||||
* capplet-util.c: (directory_delete_recursive): don't try to delete
|
* capplet-util.c: (directory_delete_recursive): don't try to delete
|
||||||
|
|
|
@ -149,7 +149,7 @@ gtkrc_get_details (gchar *filename, GSList **engines, GSList **symbolic_colors)
|
||||||
else if (scanner->value.v_symbol == ENGINE_SYMBOL)
|
else if (scanner->value.v_symbol == ENGINE_SYMBOL)
|
||||||
{
|
{
|
||||||
string_token = g_scanner_get_next_token (scanner);
|
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;
|
continue;
|
||||||
if (!g_slist_find_custom (*engines, scanner->value.v_string, (GCompareFunc) strcmp))
|
if (!g_slist_find_custom (*engines, scanner->value.v_string, (GCompareFunc) strcmp))
|
||||||
*engines = g_slist_append (*engines, g_strdup (scanner->value.v_string));
|
*engines = g_slist_append (*engines, g_strdup (scanner->value.v_string));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue