summaryrefslogtreecommitdiffstats
path: root/src/arc-context.cpp
diff options
context:
space:
mode:
authorJosh Andler <scislac@gmail.com>2006-06-19 02:23:07 +0000
committerscislac <scislac@users.sourceforge.net>2006-06-19 02:23:07 +0000
commitbb05f0d4bf3818eec40efbf0ca30ae4bd21a65b4 (patch)
tree9b288ae8f76ae6ca2ed6ae4f4bc4fce0f7df6ab5 /src/arc-context.cpp
parentadded vietnamese as translation package (diff)
downloadinkscape-bb05f0d4bf3818eec40efbf0ca30ae4bd21a65b4.tar.gz
inkscape-bb05f0d4bf3818eec40efbf0ca30ae4bd21a65b4.zip
initial color cursor implementation (reads from pixbufs, will work on reading from svg instead)
(bzr r1227)
Diffstat (limited to 'src/arc-context.cpp')
-rw-r--r--src/arc-context.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/arc-context.cpp b/src/arc-context.cpp
index 38e6653ac..830f4c511 100644
--- a/src/arc-context.cpp
+++ b/src/arc-context.cpp
@@ -30,6 +30,7 @@
#include "desktop-handles.h"
#include "snap.h"
#include "pixmaps/cursor-ellipse.xpm"
+#include "pixmaps/cursor-ellipse.pixbuf"
#include "sp-metrics.h"
#include "xml/repr.h"
#include "xml/node-event-vector.h"
@@ -94,6 +95,11 @@ static void sp_arc_context_init(SPArcContext *arc_context)
SPEventContext *event_context = SP_EVENT_CONTEXT(arc_context);
event_context->cursor_shape = cursor_ellipse_xpm;
+ event_context->cursor_pixbuf = gdk_pixbuf_new_from_inline(
+ -1,
+ cursor_ellipse_pixbuf,
+ FALSE,
+ NULL);
event_context->hot_x = 4;
event_context->hot_y = 4;
event_context->xp = 0;