diff options
| author | Josh Andler <scislac@gmail.com> | 2006-06-19 02:23:07 +0000 |
|---|---|---|
| committer | scislac <scislac@users.sourceforge.net> | 2006-06-19 02:23:07 +0000 |
| commit | bb05f0d4bf3818eec40efbf0ca30ae4bd21a65b4 (patch) | |
| tree | 9b288ae8f76ae6ca2ed6ae4f4bc4fce0f7df6ab5 /src/connector-context.cpp | |
| parent | added vietnamese as translation package (diff) | |
| download | inkscape-bb05f0d4bf3818eec40efbf0ca30ae4bd21a65b4.tar.gz inkscape-bb05f0d4bf3818eec40efbf0ca30ae4bd21a65b4.zip | |
initial color cursor implementation (reads from pixbufs, will work on reading from svg instead)
(bzr r1227)
Diffstat (limited to 'src/connector-context.cpp')
| -rw-r--r-- | src/connector-context.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/connector-context.cpp b/src/connector-context.cpp index 10312c411..7343d6250 100644 --- a/src/connector-context.cpp +++ b/src/connector-context.cpp @@ -45,6 +45,7 @@ #include "connector-context.h" #include "pixmaps/cursor-connector.xpm" +#include "pixmaps/cursor-connector.pixbuf" #include "xml/node-event-vector.h" #include "xml/repr.h" #include "svg/svg.h" @@ -180,6 +181,11 @@ sp_connector_context_init(SPConnectorContext *cc) SPEventContext *ec = SP_EVENT_CONTEXT(cc); ec->cursor_shape = cursor_connector_xpm; + ec->cursor_pixbuf = gdk_pixbuf_new_from_inline( + -1, + cursor_connector_pixbuf, + FALSE, + NULL); ec->hot_x = 1; ec->hot_y = 1; ec->xp = 0; |
