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

enum CRStatus cr_sel_eng_unregister_all_pseudo_class_sel_handlers ( CRSelEng *  a_this  ) 

Unregisters all the pseudo class sel handlers and frees all the associated allocated datastructures.

a_this the current instance of CRSelEng .
CR_OK upon succesful completion, an error code otherwise.

Definition at line 1208 of file cr-sel-eng.c.

Referenced by cr_sel_eng_destroy().

        GList *elem = NULL;
        struct CRPseudoClassSelHandlerEntry *entry = NULL;

        g_return_val_if_fail (a_this && PRIVATE (a_this), CR_BAD_PARAM_ERROR);

        if (!PRIVATE (a_this)->pcs_handlers)
                return CR_OK;
        for (elem = PRIVATE (a_this)->pcs_handlers;
             elem; elem = g_list_next (elem)) {
                entry = (struct CRPseudoClassSelHandlerEntry *) elem->data;
                if (!entry)
                if (entry->name) {
                        g_free (entry->name);
                        entry->name = NULL;
                g_free (entry);
                elem->data = NULL;
        g_list_free (PRIVATE (a_this)->pcs_handlers);
        PRIVATE (a_this)->pcs_handlers = NULL;
        return CR_OK;

Generated by  Doxygen 1.6.0   Back to index