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

gboolean cr_selector_unref ( CRSelector *  a_this  ) 

Decrements the ref count of the current instance of CRSelector. If the ref count reaches zero, the current instance of CRSelector is destroyed.

Parameters:
a_this the current instance of CRSelector.
Returns:
TRUE if this function destroyed the current instance of CRSelector, FALSE otherwise.

Definition at line 207 of file cr-selector.c.

{
        g_return_val_if_fail (a_this, FALSE);

        if (a_this->ref_count) {
                a_this->ref_count--;
        }

        if (a_this->ref_count == 0) {
                cr_selector_destroy (a_this);
                return TRUE;
        }

        return FALSE;
}


Generated by  Doxygen 1.6.0   Back to index