Logo Search packages:      
Sourcecode: inkscape version File versions

static void sp_canvas_destroy ( GtkObject *  object  )  [static]

Destroy handler for SPCanvas.

Definition at line 1090 of file sp-canvas.cpp.

References SPCanvas::root.

Referenced by sp_canvas_class_init().

{
    SPCanvas *canvas = SP_CANVAS (object);

    if (canvas->root) {
        gtk_object_unref (GTK_OBJECT (canvas->root));
        canvas->root = NULL;
    }

    shutdown_transients (canvas);

    if (GTK_OBJECT_CLASS (canvas_parent_class)->destroy)
        (* GTK_OBJECT_CLASS (canvas_parent_class)->destroy) (object);
}


Generated by  Doxygen 1.6.0   Back to index