Logo Search packages:      
Sourcecode: inkscape version File versions

SPObject* sp_object_ref ( SPObject object,
SPObject owner 
)

Increase reference count of object, with possible debugging.

Parameters:
owner If non-NULL, make debug log entry.
Returns:
object, NULL is error.
Precondition:
object points to real object

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

Referenced by Inkscape::Selection::_emitChanged(), Inkscape::ObjectHierarchy::_trimAbove(), Inkscape::ObjectHierarchy::_trimBelow(), SPObject::deleteObject(), Inkscape::LayerVerb::perform(), Inkscape::ObjectHierarchy::setBottom(), SPObject::setSuccessor(), sp_object_attach(), and sp_object_private_set().

{
    g_return_val_if_fail(object != NULL, NULL);
    g_return_val_if_fail(SP_IS_OBJECT(object), NULL);
    g_return_val_if_fail(!owner || SP_IS_OBJECT(owner), NULL);

    Inkscape::Debug::EventTracker<RefEvent> tracker(object);
    g_object_ref(G_OBJECT(object));
    return object;
}


Generated by  Doxygen 1.6.0   Back to index