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/gradient-context.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gradient-context.cpp') diff --git a/src/gradient-context.cpp b/src/gradient-context.cpp index aaf86d863..56fe5c7d8 100644 --- a/src/gradient-context.cpp +++ b/src/gradient-context.cpp @@ -26,6 +26,7 @@ #include "message-context.h" #include "message-stack.h" #include "pixmaps/cursor-gradient.xpm" +#include "pixmaps/cursor-gradient.pixbuf" #include "gradient-context.h" #include #include "prefs-utils.h" @@ -84,6 +85,11 @@ static void sp_gradient_context_init(SPGradientContext *gr_context) SPEventContext *event_context = SP_EVENT_CONTEXT(gr_context); event_context->cursor_shape = cursor_gradient_xpm; + event_context->cursor_pixbuf = gdk_pixbuf_new_from_inline( + -1, + cursor_gradient_pixbuf, + FALSE, + NULL); event_context->hot_x = 4; event_context->hot_y = 4; event_context->xp = 0; -- cgit v1.2.3