Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

CRDeclaration* cr_declaration_get_by_prop_name ( CRDeclaration a_this,
const guchar *  a_prop 

Use property name to get a CRDeclaration from the declaration list.

a_this the current instance of CRDeclaration.
a_prop the property name to search for.
CRDeclaration with property name a_prop, or NULL if not found.

Definition at line 656 of file cr-declaration.c.

        CRDeclaration *cur = NULL;

        g_return_val_if_fail (a_this, NULL);
        g_return_val_if_fail (a_prop, NULL);

        for (cur = a_this; cur; cur = cur->next) {
            if (cur->property 
                && cur->property->stryng
                && cur->property->stryng->str) {
                  if (!strcmp (cur->property->stryng->str, 
                             (char *)a_prop)) {
                        return cur;
        return NULL;

Generated by  Doxygen 1.6.0   Back to index