From bb05f0d4bf3818eec40efbf0ca30ae4bd21a65b4 Mon Sep 17 00:00:00 2001 From: Josh Andler Date: Mon, 19 Jun 2006 02:23:07 +0000 Subject: initial color cursor implementation (reads from pixbufs, will work on reading from svg instead) (bzr r1227) --- src/dropper-context.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/dropper-context.cpp') diff --git a/src/dropper-context.cpp b/src/dropper-context.cpp index 0e621c325..b05c92bc0 100644 --- a/src/dropper-context.cpp +++ b/src/dropper-context.cpp @@ -39,6 +39,7 @@ #include "document.h" #include "pixmaps/cursor-dropper.xpm" +#include "pixmaps/cursor-dropper.pixbuf" #include "dropper-context.h" #include "message-context.h" @@ -99,6 +100,11 @@ static void sp_dropper_context_init(SPDropperContext *dc) { SPEventContext *event_context = SP_EVENT_CONTEXT(dc); event_context->cursor_shape = cursor_dropper_xpm; + event_context->cursor_pixbuf = gdk_pixbuf_new_from_inline( + -1, + cursor_dropper_pixbuf, + FALSE, + NULL); event_context->hot_x = 7; event_context->hot_y = 7; } -- cgit v1.2.3