static void sp_box3d_context_dispose(GObject *object) { Box3DContext *bc = SP_BOX3D_CONTEXT(object); SPEventContext *ec = SP_EVENT_CONTEXT(object); ec->enableGrDrag(false); delete (bc->_vpdrag); bc->_vpdrag = NULL; bc->sel_changed_connection.disconnect(); bc->sel_changed_connection.~connection(); delete ec->shape_editor; ec->shape_editor = NULL; /* fixme: This is necessary because we do not grab */ if (bc->item) { sp_box3d_finish(bc); } if (bc->_message_context) { delete bc->_message_context; } G_OBJECT_CLASS(parent_class)->dispose(object); }
static void sp_gradient_context_dispose(GObject *object) { SPGradientContext *rc = SP_GRADIENT_CONTEXT(object); SPEventContext *ec = SP_EVENT_CONTEXT(object); ec->enableGrDrag(false); if (rc->_message_context) { delete rc->_message_context; } rc->selcon->disconnect(); delete rc->selcon; rc->subselcon->disconnect(); delete rc->subselcon; G_OBJECT_CLASS(parent_class)->dispose(object); }
static void sp_select_context_dispose(GObject *object) { SPSelectContext *sc = SP_SELECT_CONTEXT(object); SPEventContext * ec = SP_EVENT_CONTEXT (object); ec->enableGrDrag(false); if (sc->grabbed) { sp_canvas_item_ungrab(sc->grabbed, GDK_CURRENT_TIME); sc->grabbed = NULL; } delete sc->_seltrans; sc->_seltrans = NULL; delete sc->_describer; sc->_describer = NULL; G_OBJECT_CLASS(parent_class)->dispose(object); }
static void sp_spray_context_dispose(GObject *object) { SPSprayContext *tc = SP_SPRAY_CONTEXT(object); SPEventContext *ec = SP_EVENT_CONTEXT(object); ec->enableGrDrag(false); tc->style_set_connection.disconnect(); tc->style_set_connection.~connection(); if (tc->dilate_area) { sp_canvas_item_destroy(tc->dilate_area); tc->dilate_area = NULL; } if (tc->_message_context) { delete tc->_message_context; } G_OBJECT_CLASS(parent_class)->dispose(object); }
static void sp_spiral_context_dispose(GObject *object) { SPSpiralContext *sc = SP_SPIRAL_CONTEXT(object); SPEventContext *ec = SP_EVENT_CONTEXT(object); ec->enableGrDrag(false); sc->sel_changed_connection.disconnect(); sc->sel_changed_connection.~connection(); delete ec->shape_editor; ec->shape_editor = NULL; /* fixme: This is necessary because we do not grab */ if (sc->item) sp_spiral_finish(sc); if (sc->_message_context) { delete sc->_message_context; } G_OBJECT_CLASS(parent_class)->dispose(object); }