Compare widget names as GQuarks in style matching.

This commit is contained in:
Carlos Garnacho
2010-08-04 13:11:50 +02:00
parent 09d8592b5b
commit 56e4ffabea
3 changed files with 50 additions and 19 deletions

View File

@ -433,13 +433,7 @@ compare_selector_element (GtkWidgetPath *path,
}
else if (elem->elem_type == SELECTOR_NAME)
{
const gchar *name, *path_name;
name = g_quark_to_string (elem->name);
path_name = gtk_widget_path_iter_get_name (path, index);
if (!path_name ||
strcmp (path_name, name) != 0)
if (!gtk_widget_path_iter_has_qname (path, index, elem->name))
return FALSE;
*score = 0xF;