static gboolean gtk_css_matcher_widget_path_has_class (const GtkCssMatcher *matcher, GQuark class_name) { const GtkWidgetPath *siblings; if (matcher->path.decl && gtk_css_node_declaration_has_class (matcher->path.decl, class_name)) return TRUE; siblings = gtk_widget_path_iter_get_siblings (matcher->path.path, matcher->path.index); if (siblings && matcher->path.sibling_index != gtk_widget_path_iter_get_sibling_index (matcher->path.path, matcher->path.index)) return gtk_widget_path_iter_has_qclass (siblings, matcher->path.sibling_index, class_name); else return gtk_widget_path_iter_has_qclass (matcher->path.path, matcher->path.index, class_name); }
gboolean gtk_css_node_has_class (GtkCssNode *cssnode, GQuark style_class) { return gtk_css_node_declaration_has_class (cssnode->decl, style_class); }