From: buliabyak Date: Sat, 19 Jul 2008 04:35:04 +0000 (+0000) Subject: remove usereference vestiges, change the signature of user_unlink (not used yet) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9070c55738c935784c2033fbf7b38c1dbd400b64;p=inkscape.git remove usereference vestiges, change the signature of user_unlink (not used yet) --- diff --git a/src/live_effects/lpeobject-reference.cpp b/src/live_effects/lpeobject-reference.cpp index 8a8dd94da..f522ae56e 100644 --- a/src/live_effects/lpeobject-reference.cpp +++ b/src/live_effects/lpeobject-reference.cpp @@ -128,17 +128,10 @@ lpeobjectreference_href_changed(SPObject */*old_ref*/, SPObject */*ref*/, LPEObj static void lpeobjectreference_delete_self(SPObject */*deleted*/, LPEObjectReference *lpeobjref) { - guint const mode = prefs_get_int_attribute("options.cloneorphans", "value", SP_CLONE_ORPHANS_UNLINK); - - if (mode == SP_CLONE_ORPHANS_UNLINK) { - // leave it be. just forget about the source lpeobjref->quit_listening(); lpeobjref->unlink(); if (lpeobjref->user_unlink) - lpeobjref->user_unlink(lpeobjref->owner); - } else if (mode == SP_CLONE_ORPHANS_DELETE) { - lpeobjref->owner->deleteObject(); - } + lpeobjref->user_unlink(lpeobjref, lpeobjref->owner); } static void diff --git a/src/live_effects/lpeobject-reference.h b/src/live_effects/lpeobject-reference.h index e5f7556f1..48d7eb3a5 100644 --- a/src/live_effects/lpeobject-reference.h +++ b/src/live_effects/lpeobject-reference.h @@ -46,7 +46,7 @@ public: void start_listening(LivePathEffectObject* to); void quit_listening(void); - void (*user_unlink) (SPObject *user); + void (*user_unlink) (LPEObjectReference *me, SPObject *user); protected: bool _acceptObject(SPObject * const obj) const;