From: cilix42 Date: Sun, 27 Jan 2008 14:00:23 +0000 (+0000) Subject: Make guidelines quickly deletable by using Ctrl+click (is Ctrl a suitable modifier... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3812c8d2caedfb5efcaebdf21b9002c62425586c;p=inkscape.git Make guidelines quickly deletable by using Ctrl+click (is Ctrl a suitable modifier for this?) --- 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 |