summaryrefslogtreecommitdiffstats
path: root/src/rect-context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rect-context.cpp')
-rw-r--r--src/rect-context.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rect-context.cpp b/src/rect-context.cpp
index 96a3d4cf8..ffd57c415 100644
--- a/src/rect-context.cpp
+++ b/src/rect-context.cpp
@@ -29,6 +29,7 @@
#include "desktop-style.h"
#include "message-context.h"
#include "pixmaps/cursor-rect.xpm"
+#include "pixmaps/cursor-rect.pixbuf"
#include "rect-context.h"
#include "sp-metrics.h"
#include <glibmm/i18n.h>
@@ -93,6 +94,11 @@ static void sp_rect_context_init(SPRectContext *rect_context)
SPEventContext *event_context = SP_EVENT_CONTEXT(rect_context);
event_context->cursor_shape = cursor_rect_xpm;
+ event_context->cursor_pixbuf = gdk_pixbuf_new_from_inline(
+ -1,
+ cursor_rect_pixbuf,
+ FALSE,
+ NULL);
event_context->hot_x = 4;
event_context->hot_y = 4;
event_context->xp = 0;