Code

add paintbucket cursor
authorbuliabyak <buliabyak@users.sourceforge.net>
Tue, 27 Feb 2007 06:18:45 +0000 (06:18 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Tue, 27 Feb 2007 06:18:45 +0000 (06:18 +0000)
src/flood-context.cpp
src/pixmaps/cursor-paintbucket.xpm [new file with mode: 0644]

index a6ef8a266b846f7e0b81c0098cb5a0d33c18bf24..cb41ce85a6cc8a94f4188eeaa9657c7e39e9fd63 100644 (file)
@@ -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 (file)
index 0000000..619a551
--- /dev/null
@@ -0,0 +1,38 @@
+/* XPM */
+static char * cursor_paintbucket_xpm[] = {
+"32 32 3 1",
+"      c None",
+".     c #FFFFFF",
+"+     c #000000",
+"                                ",
+"                   ...          ",
+"         ...     ......         ",
+"       ..++..  ...++++..        ",
+"       .+..+....++....+..       ",
+"      ..+..+..++.......+..      ",
+"      ..+..+++..........+..     ",
+"     ..+..+++............+.     ",
+"     ..+++..+............+.     ",
+"     .+++...+............+..    ",
+"     .++.+...+............+.    ",
+"     .+..++..+............+.    ",
+"     .+...+..+............+.    ",
+"     .+....+.+............+.    ",
+"     .+....++++...........+.    ",
+"     ..+....+.+...........+.    ",
+"      .+....++...........+..    ",
+"      .++...+..........++..     ",
+"      ..+....+.......++...      ",
+"       .++...+.....++...        ",
+"        .+...+...++...          ",
+"        .++.++.++...            ",
+"         .+++++...              ",
+"          .+++.                 ",
+"          .++.                  ",
+"          .++.                  ",
+"          .++.                  ",
+"          .++.                  ",
+"          .++.                  ",
+"          .+..                  ",
+"          ...                   ",
+"                                "};