css: Fix type of GtkCssSelectorRuleSetInfo match

The old type was a leftover from a previous version.
This commit is contained in:
Alexander Larsson 2012-11-29 15:01:47 +01:00
parent 6b85db7555
commit f678827918

View File

@ -1689,7 +1689,7 @@ _gtk_css_selector_tree_free (GtkCssSelectorTree *tree)
typedef struct { typedef struct {
GtkCssSelector **ruleset; gpointer match;
GtkCssSelector *current_selector; GtkCssSelector *current_selector;
} GtkCssSelectorRuleSetInfo; } GtkCssSelectorRuleSetInfo;
@ -1754,7 +1754,7 @@ subdivide_infos (GList *infos, GtkCssSelectorTree *parent)
/* Matches current node */ /* Matches current node */
if (exact_matches == NULL) if (exact_matches == NULL)
exact_matches = g_ptr_array_new (); exact_matches = g_ptr_array_new ();
g_ptr_array_add (exact_matches, info->ruleset); g_ptr_array_add (exact_matches, info->match);
} }
else else
matched = g_list_prepend (matched, info); matched = g_list_prepend (matched, info);
@ -1804,7 +1804,7 @@ _gtk_css_selector_tree_builder_add (GtkCssSelectorTreeBuilder *builder,
{ {
GtkCssSelectorRuleSetInfo *info = g_new0 (GtkCssSelectorRuleSetInfo, 1); GtkCssSelectorRuleSetInfo *info = g_new0 (GtkCssSelectorRuleSetInfo, 1);
info->ruleset = match; info->match = match;
info->current_selector = selectors; info->current_selector = selectors;
builder->infos = g_list_prepend (builder->infos, info); builder->infos = g_list_prepend (builder->infos, info);
} }