summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a88ae89)
raw | patch | inline | side by side (parent: a88ae89)
author | cilix42 <cilix42@users.sourceforge.net> | |
Mon, 18 Aug 2008 00:39:41 +0000 (00:39 +0000) | ||
committer | cilix42 <cilix42@users.sourceforge.net> | |
Mon, 18 Aug 2008 00:39:41 +0000 (00:39 +0000) |
src/lpe-tool-context.cpp | patch | blob | history | |
src/pixmaps/cursor-crosshairs.xpm | [new file with mode: 0644] | patch | blob |
index fb3814ab736620fbab33a9e17ea8424903cd6c82..1fb55919f1e9b2b1954d33b5d67d76cebbc18adb 100644 (file)
--- a/src/lpe-tool-context.cpp
+++ b/src/lpe-tool-context.cpp
#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"
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;
}
/**
{
diff --git a/src/pixmaps/cursor-crosshairs.xpm b/src/pixmaps/cursor-crosshairs.xpm
--- /dev/null
@@ -0,0 +1,38 @@
+/* XPM */
+static char const *cursor_crosshairs_xpm[] = {
+"32 32 3 1",
+" c None",
+". c #FFFFFF",
+"+ c #000000",
+" . ",
+" .+. ",
+" .+. ",
+" .+. ",
+" .+. ",
+" .+. ",
+" ..... ..... ",
+".+++++ +++++. ",
+" ..... ..... ",
+" .+. ",
+" .+. ",
+" .+. ",
+" .+. ",
+" .+. ",
+" . ",
+" ",
+" ",
+" ",
+" ",
+" ",
+" ",
+" ",
+" ",
+" ",
+" ",
+" ",
+" ",
+" ",
+" ",
+" ",
+" ",
+" "};