summaryrefslogtreecommitdiffstats
path: root/src/lpe-tool-context.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-08-18 00:39:41 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-08-18 00:39:41 +0000
commite75915614efb65a13fe94071bc7c665555dc046d (patch)
tree7ed6510e963d87aa7a3ff7ee8b7334ceeccf204d /src/lpe-tool-context.cpp
parentMany debugging messages (diff)
downloadinkscape-e75915614efb65a13fe94071bc7c665555dc046d.tar.gz
inkscape-e75915614efb65a13fe94071bc7c665555dc046d.zip
New crosshairs cursor for geometry context
(bzr r6662)
Diffstat (limited to 'src/lpe-tool-context.cpp')
-rw-r--r--src/lpe-tool-context.cpp21
1 files changed, 7 insertions, 14 deletions
diff --git a/src/lpe-tool-context.cpp b/src/lpe-tool-context.cpp
index fb3814ab7..1fb55919f 100644
--- a/src/lpe-tool-context.cpp
+++ b/src/lpe-tool-context.cpp
@@ -16,8 +16,8 @@
#include "config.h"
#include "forward.h"
-#include "pixmaps/cursor-pencil.xpm"
#include "pixmaps/cursor-node.xpm"
+#include "pixmaps/cursor-crosshairs.xpm"
#include <gtk/gtk.h>
#include "desktop.h"
#include "message-context.h"
@@ -126,14 +126,9 @@ sp_lpetool_context_class_init(SPLPEToolContextClass *klass)
static void
sp_lpetool_context_init(SPLPEToolContext *lc)
{
- /**
- lc->NodeContextCpp::cursor_shape = cursor_pencil_xpm;
- lc->NodeContextCpp::hot_x = 4;
- lc->NodeContextCpp::hot_y = 4;
- **/
- lc->cursor_shape = cursor_pencil_xpm;
- lc->hot_x = 4;
- lc->hot_y = 4;
+ lc->cursor_shape = cursor_crosshairs_xpm;
+ lc->hot_x = 7;
+ lc->hot_y = 7;
new (&lc->sel_changed_connection) sigc::connection();
@@ -326,13 +321,11 @@ sp_lpetool_context_root_handler(SPEventContext *event_context, GdkEvent *event)
event_context->hot_x = 1;
event_context->hot_y = 1;
sp_event_context_update_cursor(event_context);
- //lc->cursor_drag = false;
} else {
- lc->cursor_shape = cursor_pencil_xpm;
- lc->hot_x = 4;
- lc->hot_y = 4;
+ lc->cursor_shape = cursor_crosshairs_xpm;
+ lc->hot_x = 7;
+ lc->hot_y = 7;
sp_event_context_update_cursor(event_context);
- //lc->cursor_drag = false;
}
/**
{