static gboolean gtk_css_matcher_widget_path_has_id (const GtkCssMatcher *matcher, const char *id) { const GtkWidgetPath *siblings; 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_name (siblings, matcher->path.sibling_index, id); else return gtk_widget_path_iter_has_name (matcher->path.path, matcher->path.index, id); }
static VALUE rg_iter_has_name_p(VALUE self, VALUE pos, VALUE name) { return CBOOL2RVAL(gtk_widget_path_iter_has_name(_SELF(self), NUM2INT(pos), RVAL2CSTR(name))); }