summaryrefslogtreecommitdiffstats
path: root/src/common-context.cpp
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2012-06-09 13:40:09 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2012-06-09 13:40:09 +0000
commit62dd6c138e3547689acdcccbb289d822b458cdb0 (patch)
treedf7a4a357c7483216c7d805406bd79ff3c21c7c1 /src/common-context.cpp
parentMove measure angle string to keep it visible when angle is small. (diff)
downloadinkscape-62dd6c138e3547689acdcccbb289d822b458cdb0.tar.gz
inkscape-62dd6c138e3547689acdcccbb289d822b458cdb0.zip
Stop deriving SPCanvasItem from GtkObject
(bzr r11469.1.1)
Diffstat (limited to 'src/common-context.cpp')
-rw-r--r--src/common-context.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common-context.cpp b/src/common-context.cpp
index 467d19f72..9ced41a26 100644
--- a/src/common-context.cpp
+++ b/src/common-context.cpp
@@ -8,6 +8,7 @@
#include "message-context.h"
#include "streq.h"
#include "preferences.h"
+#include "display/sp-canvas-item.h"
#define MIN_PRESSURE 0.0
#define MAX_PRESSURE 1.0
@@ -116,7 +117,7 @@ static void sp_common_context_dispose(GObject *object)
}
while (ctx->segments) {
- gtk_object_destroy(GTK_OBJECT(ctx->segments->data));
+ sp_canvas_item_destroy(SP_CANVAS_ITEM(ctx->segments->data));
ctx->segments = g_slist_remove(ctx->segments, ctx->segments->data);
}
@@ -134,7 +135,7 @@ static void sp_common_context_dispose(GObject *object)
}
if (ctx->currentshape) {
- gtk_object_destroy(GTK_OBJECT(ctx->currentshape));
+ sp_canvas_item_destroy(ctx->currentshape);
ctx->currentshape = 0;
}