From 3812c8d2caedfb5efcaebdf21b9002c62425586c Mon Sep 17 00:00:00 2001 From: cilix42 Date: Sun, 27 Jan 2008 14:00:23 +0000 Subject: [PATCH] Make guidelines quickly deletable by using Ctrl+click (is Ctrl a suitable modifier for this?) --- src/desktop-events.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/desktop-events.cpp b/src/desktop-events.cpp index a2ad8103b..503f24c43 100644 --- a/src/desktop-events.cpp +++ b/src/desktop-events.cpp @@ -189,6 +189,13 @@ gint sp_dt_guide_event(SPCanvasItem *item, GdkEvent *event, gpointer data) 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 | -- 2.30.2