summaryrefslogtreecommitdiffstats
path: root/src/desktop-events.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-12-05 22:55:57 +0000
committerjabiertxof <jabier.arraiza@marker.es>2015-12-05 22:55:57 +0000
commite649a1d9cd29f39b2d1cf343cec97ccebce9cf08 (patch)
treeecd97a46bd8a11da9941374d93eb1c32240394a6 /src/desktop-events.cpp
parentupdate to trunk (diff)
downloadinkscape-e649a1d9cd29f39b2d1cf343cec97ccebce9cf08.tar.gz
inkscape-e649a1d9cd29f39b2d1cf343cec97ccebce9cf08.zip
Changed from Desktop to namedview to handle multiples documents
(bzr r14500.1.8)
Diffstat (limited to 'src/desktop-events.cpp')
-rw-r--r--src/desktop-events.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/desktop-events.cpp b/src/desktop-events.cpp
index f86cb2991..6968a19f8 100644
--- a/src/desktop-events.cpp
+++ b/src/desktop-events.cpp
@@ -50,6 +50,8 @@
#include "ui/tools-switch.h"
#include "verbs.h"
#include "widgets/desktop-widget.h"
+#include "sp-cursor.h"
+#include "pixmaps/cursor-select.xpm"
#include "xml/repr.h"
using Inkscape::DocumentUndo;
@@ -514,8 +516,9 @@ gint sp_dt_guide_event(SPCanvasItem *item, GdkEvent *event, gpointer data)
break;
case GDK_ENTER_NOTIFY:
{
- sp_guideline_set_color(SP_GUIDELINE(item), guide->getHiColor());
-
+ if (!guide->getLocked()) {
+ sp_guideline_set_color(SP_GUIDELINE(item), guide->getHiColor());
+ }
// set move or rotate cursor
Geom::Point const event_w(event->crossing.x, event->crossing.y);
@@ -531,10 +534,8 @@ gint sp_dt_guide_event(SPCanvasItem *item, GdkEvent *event, gpointer data)
} else {
GdkCursor *guide_cursor;
guide_cursor = gdk_cursor_new (GDK_HAND1);
- Inkscape::Preferences *prefs = Inkscape::Preferences::get();
- bool global_lock = prefs->getBool("/options/guides/guides_lock", false);
- if(guide->getLocked() || global_lock){
- guide_cursor = gdk_cursor_new (GDK_X_CURSOR);
+ if(guide->getLocked()){
+ guide_cursor = sp_cursor_new_from_xpm(cursor_select_xpm , 1, 1);
}
gdk_window_set_cursor(gtk_widget_get_window (GTK_WIDGET(desktop->getCanvas())), guide_cursor);
#if GTK_CHECK_VERSION(3,0,0)