summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-02-27 06:18:45 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-02-27 06:18:45 +0000
commit79836545ae9daca1150995ec56edcbf757d96045 (patch)
tree433dd21d6e1a809710cde4352f95d98fa42fe686 /src
parentmore comments (diff)
downloadinkscape-79836545ae9daca1150995ec56edcbf757d96045.tar.gz
inkscape-79836545ae9daca1150995ec56edcbf757d96045.zip
add paintbucket cursor
(bzr r2459)
Diffstat (limited to 'src')
-rw-r--r--src/flood-context.cpp8
-rw-r--r--src/pixmaps/cursor-paintbucket.xpm38
2 files changed, 42 insertions, 4 deletions
diff --git a/src/flood-context.cpp b/src/flood-context.cpp
index a6ef8a266..cb41ce85a 100644
--- a/src/flood-context.cpp
+++ b/src/flood-context.cpp
@@ -34,7 +34,7 @@
#include "desktop-style.h"
#include "message-stack.h"
#include "message-context.h"
-#include "pixmaps/cursor-rect.xpm"
+#include "pixmaps/cursor-paintbucket.xpm"
#include "flood-context.h"
#include "sp-metrics.h"
#include <glibmm/i18n.h>
@@ -130,9 +130,9 @@ static void sp_flood_context_init(SPFloodContext *flood_context)
{
SPEventContext *event_context = SP_EVENT_CONTEXT(flood_context);
- event_context->cursor_shape = cursor_rect_xpm;
- event_context->hot_x = 4;
- event_context->hot_y = 4;
+ event_context->cursor_shape = cursor_paintbucket_xpm;
+ event_context->hot_x = 11;
+ event_context->hot_y = 30;
event_context->xp = 0;
event_context->yp = 0;
event_context->tolerance = 0;
diff --git a/src/pixmaps/cursor-paintbucket.xpm b/src/pixmaps/cursor-paintbucket.xpm
new file mode 100644
index 000000000..619a551c7
--- /dev/null
+++ b/src/pixmaps/cursor-paintbucket.xpm
@@ -0,0 +1,38 @@
+/* XPM */
+static char * cursor_paintbucket_xpm[] = {
+"32 32 3 1",
+" c None",
+". c #FFFFFF",
+"+ c #000000",
+" ",
+" ... ",
+" ... ...... ",
+" ..++.. ...++++.. ",
+" .+..+....++....+.. ",
+" ..+..+..++.......+.. ",
+" ..+..+++..........+.. ",
+" ..+..+++............+. ",
+" ..+++..+............+. ",
+" .+++...+............+.. ",
+" .++.+...+............+. ",
+" .+..++..+............+. ",
+" .+...+..+............+. ",
+" .+....+.+............+. ",
+" .+....++++...........+. ",
+" ..+....+.+...........+. ",
+" .+....++...........+.. ",
+" .++...+..........++.. ",
+" ..+....+.......++... ",
+" .++...+.....++... ",
+" .+...+...++... ",
+" .++.++.++... ",
+" .+++++... ",
+" .+++. ",
+" .++. ",
+" .++. ",
+" .++. ",
+" .++. ",
+" .++. ",
+" .+.. ",
+" ... ",
+" "};