Logo Search packages:      
Sourcecode: inkscape version File versions

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

Move object corresponding to child after sibling object corresponding to new_ref. Invoked whenever the given mutation event happens in the XML tree.

old_ref Ignored

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

References SPObject::_position_changed_signal, sp_object_get_child_by_repr(), and sp_object_reorder().

Referenced by sp_object_class_init().

    SPObject *ochild = sp_object_get_child_by_repr(object, child);
    g_return_if_fail(ochild != NULL);
    SPObject *prev = new_ref ? sp_object_get_child_by_repr(object, new_ref) : NULL;
    sp_object_reorder(ochild, prev);

Generated by  Doxygen 1.6.0   Back to index