summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f68840c)
raw | patch | inline | side by side (parent: f68840c)
author | cilix42 <cilix42@users.sourceforge.net> | |
Sun, 27 Jan 2008 14:00:23 +0000 (14:00 +0000) | ||
committer | cilix42 <cilix42@users.sourceforge.net> | |
Sun, 27 Jan 2008 14:00:23 +0000 (14:00 +0000) |
src/desktop-events.cpp | patch | blob | history |
diff --git a/src/desktop-events.cpp b/src/desktop-events.cpp
index a2ad8103b58d6c4c4fdb285dd375e1e22204d7db..503f24c43f4a23c6cd4bda632256d5c190cf3357 100644 (file)
--- a/src/desktop-events.cpp
+++ b/src/desktop-events.cpp
break;
case GDK_BUTTON_PRESS:
if (event->button.button == 1) {
+ if (event->button.state & GDK_CONTROL_MASK) {
+ SPDocument *doc = SP_OBJECT_DOCUMENT(guide);
+ sp_guide_remove(guide);
+ sp_document_done(doc, SP_VERB_NONE, _("Delete guide"));
+ ret = TRUE;
+ break;
+ }
dragging = true;
sp_canvas_item_grab(item,
( GDK_BUTTON_RELEASE_MASK |