Logo Search packages:      
Sourcecode: inkscape version File versions

GSList * SPObject::childList ( bool  add_ref,
Action  action = ActionGeneral 
) [inherited]

Retrieves children as a GSList.

Retrieves the children as a GSList object, optionally ref'ing the children in the process, if add_ref is specified.

Definition at line 458 of file sp-object.cpp.

                                                {
    GSList *l = NULL;
    for (SPObject *child = sp_object_first_child(this) ; child != NULL; child = SP_OBJECT_NEXT(child) ) {
        if (add_ref)
            g_object_ref (G_OBJECT (child));

        l = g_slist_prepend (l, child);
    }
    return l;

}


Generated by  Doxygen 1.6.0   Back to index