/*# @method is_descendant GtkTreePath @brief Returns TRUE if path is a descendant of ancestor. @param ancestor another GtkTreePath @return TRUE if ancestor contains path somewhere below it */ FALCON_FUNC TreePath::is_descendant( VMARG ) { Item* i_anc = vm->param( 0 ); #ifndef NO_PARAMETER_CHECK if ( !i_anc || !i_anc->isObject() || !IS_DERIVED( i_anc, GtkTreePath ) ) throw_inv_params( "GtkTreePath" ); #endif GtkTreePath* anc = GET_TREEPATH( *i_anc ); MYSELF; vm->retval( (bool) gtk_tree_path_is_descendant( self->getTreePath(), anc ) ); }
static VALUE rg_descendant_p(VALUE self, VALUE ancestor) { return CBOOL2RVAL(gtk_tree_path_is_descendant(_SELF(self), _SELF(ancestor))); }