LPEObjectReference::~LPEObjectReference(void) { _changed_connection.disconnect(); // to do before unlinking quit_listening(); unlink(); }
SPUsePath::~SPUsePath(void) { delete originalPath; originalPath = NULL; _changed_connection.disconnect(); // to do before unlinking quit_listening(); unlink(); }
void SPUsePath::link(char *to) { if ( to == NULL ) { quit_listening(); unlink(); } else { if ( !sourceHref || ( strcmp(to, sourceHref) != 0 ) ) { g_free(sourceHref); sourceHref = g_strdup(to); try { attach(Inkscape::URI(to)); } catch (Inkscape::BadURIException &e) { /* TODO: Proper error handling as per * http://www.w3.org/TR/SVG11/implnote.html#ErrorProcessing. */ g_warning("%s", e.what()); detach(); } } } }
void LPEObjectReference::link(const char *to) { if ( to == NULL ) { quit_listening(); unlink(); } else { if ( !lpeobject_href || ( strcmp(to, lpeobject_href) != 0 ) ) { g_free(lpeobject_href); lpeobject_href = g_strdup(to); try { attach(Inkscape::URI(to)); } catch (Inkscape::BadURIException &e) { /* TODO: Proper error handling as per * http://www.w3.org/TR/SVG11/implnote.html#ErrorProcessing. */ g_warning("%s", e.what()); detach(); } } } }