summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 111a3ff)
raw | patch | inline | side by side (parent: 111a3ff)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 17 Sep 2006 10:08:21 +0000 (10:08 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 17 Sep 2006 10:08:21 +0000 (10:08 +0000) |
src/select-context.cpp | patch | blob | history |
diff --git a/src/select-context.cpp b/src/select-context.cpp
index 6cffdc076f7161c1f4fee26dfd86f4f5f82f0329..7efd013ec99edeecc6b68b9eaf8d463a2853dfba 100644 (file)
--- a/src/select-context.cpp
+++ b/src/select-context.cpp
_("<b>Ctrl</b>: select in groups, move hor/vert"),
_("<b>Shift</b>: toggle select, force rubberband, disable snapping"),
_("<b>Alt</b>: select under, move selected"));
+ // if Alt then change cursor to moving cursor:
+ guint keyval = get_group0_keyval(&event->key);
+ bool alt = ( MOD__ALT
+ || (keyval == GDK_Alt_L)
+ || (keyval == GDK_Alt_R)
+ || (keyval == GDK_Meta_L)
+ || (keyval == GDK_Meta_R));
+ if (alt) {
+ GdkCursor *cursor = gdk_cursor_new(GDK_FLEUR);
+ gdk_window_set_cursor(GTK_WIDGET(sp_desktop_canvas(desktop))->window, cursor);
+ gdk_cursor_destroy(cursor);
+ }
+ //*/
break;
}
case GDK_KEY_RELEASE:
if (key_is_a_modifier (get_group0_keyval (&event->key)))
event_context->defaultMessageContext()->clear();
+ // set cursor to default.
+ gdk_window_set_cursor(GTK_WIDGET(sp_desktop_canvas(desktop))->window, event_context->cursor);
break;
default:
break;