diff options
| author | Josh Andler <scislac@gmail.com> | 2006-10-19 19:03:27 +0000 |
|---|---|---|
| committer | scislac <scislac@users.sourceforge.net> | 2006-10-19 19:03:27 +0000 |
| commit | 9e69eef83f511df18ca726085047e7cc4c41df31 (patch) | |
| tree | d092280e1ef9b3d3599a343852da0617e70faf4a /src/zoom-context.cpp | |
| parent | Turning on (diff) | |
| download | inkscape-9e69eef83f511df18ca726085047e7cc4c41df31.tar.gz inkscape-9e69eef83f511df18ca726085047e7cc4c41df31.zip | |
remove color cursors
(bzr r1811)
Diffstat (limited to 'src/zoom-context.cpp')
| -rw-r--r-- | src/zoom-context.cpp | 39 |
1 files changed, 11 insertions, 28 deletions
diff --git a/src/zoom-context.cpp b/src/zoom-context.cpp index 70582678f..62395581f 100644 --- a/src/zoom-context.cpp +++ b/src/zoom-context.cpp @@ -21,8 +21,6 @@ #include "desktop.h" #include "pixmaps/cursor-zoom.xpm" #include "pixmaps/cursor-zoom-out.xpm" -#include "pixmaps/cursor-zoom.pixbuf" -#include "pixmaps/cursor-zoom-out.pixbuf" #include "prefs-utils.h" #include "zoom-context.h" @@ -81,13 +79,8 @@ static void sp_zoom_context_init (SPZoomContext *zoom_context) SPEventContext *event_context = SP_EVENT_CONTEXT(zoom_context); event_context->cursor_shape = cursor_zoom_xpm; - event_context->cursor_pixbuf = gdk_pixbuf_new_from_inline( - -1, - cursor_zoom_pixbuf, - FALSE, - NULL); - event_context->hot_x = 9; - event_context->hot_y = 9; + event_context->hot_x = 6; + event_context->hot_y = 6; } static void @@ -206,34 +199,24 @@ static gint sp_zoom_context_root_handler(SPEventContext *event_context, GdkEvent case GDK_Shift_L: case GDK_Shift_R: event_context->cursor_shape = cursor_zoom_out_xpm; - event_context->cursor_pixbuf = gdk_pixbuf_new_from_inline( - -1, - cursor_zoom_out_pixbuf, - FALSE, - NULL); sp_event_context_update_cursor(event_context); break; default: - break; - } - break; - case GDK_KEY_RELEASE: + break; + } + break; + case GDK_KEY_RELEASE: switch (get_group0_keyval (&event->key)) { - case GDK_Shift_L: - case GDK_Shift_R: + case GDK_Shift_L: + case GDK_Shift_R: event_context->cursor_shape = cursor_zoom_xpm; - event_context->cursor_pixbuf = gdk_pixbuf_new_from_inline( - -1, - cursor_zoom_pixbuf, - FALSE, - NULL); sp_event_context_update_cursor(event_context); break; - default: + default: break; - } + } break; - default: + default: break; } |
