Logo Search packages:      
Sourcecode: inkscape version File versions

enum CRStatus cr_statement_at_import_rule_set_url ( CRStatement *  a_this,
CRString *  a_url 
)

Sets an url to the current rule statement.

Parameters:
a_this the current rule statement.
a_url the url to set.
Returns:
CR_OK upon successfull completion, an error code otherwise.

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

References AT_IMPORT_RULE_STMT.

{
        g_return_val_if_fail (a_this
                              && a_this->type == AT_IMPORT_RULE_STMT
                              && a_this->kind.import_rule,
                              CR_BAD_PARAM_ERROR);

        if (a_this->kind.import_rule->url) {
                cr_string_destroy (a_this->kind.import_rule->url);
        }

        a_this->kind.import_rule->url = a_url;

        return CR_OK;
}


Generated by  Doxygen 1.6.0   Back to index