Logo Search packages:      
Sourcecode: inkscape version File versions

enum CRStatus cr_statement_ruleset_set_sel_list ( CRStatement *  a_this,
CRSelector *  a_sel_list 
)

Sets a selector list to a ruleset statement.

Parameters:
a_this the current ruleset statement.
a_sel_list the selector list to set. Note that this function increments the ref count of a_sel_list. The sel list will be destroyed at the destruction of the current instance of CRStatement.
Returns:
CR_OK upon successfull completion, an error code otherwise.

Definition at line 1888 of file cr-statement.c.

{
        g_return_val_if_fail (a_this && a_this->type == RULESET_STMT,
                              CR_BAD_PARAM_ERROR);

        if (a_this->kind.ruleset->sel_list)
                cr_selector_unref (a_this->kind.ruleset->sel_list);

        a_this->kind.ruleset->sel_list = a_sel_list;

        if (a_sel_list)
                cr_selector_ref (a_sel_list);

        return CR_OK;
}


Generated by  Doxygen 1.6.0   Back to index