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

static void sp_object_remove_child ( SPObject object,
Inkscape::XML::Node child 
) [static]

Remove object's child whose node equals repr, release and unref it.

Invoked whenever the given mutation event happens in the XML tree, BEFORE removal from the XML tree happens, so grouping objects can safely release the child data.

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

References Inkscape::XML::Node::name(), sp_object_detach(), and sp_object_get_child_by_repr().

Referenced by sp_object_class_init().

    debug("id=%x, typename=%s", object, g_type_name_from_instance((GTypeInstance*)object));
    SPObject *ochild = sp_object_get_child_by_repr(object, child);
    g_return_if_fail (ochild != NULL || !strcmp("comment", child->name())); // comments have no objects
    if (ochild)
        sp_object_detach(object, ochild);

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index