From 2bebc708c1f2a0a4d243f6dc20a741099a62c8c8 Mon Sep 17 00:00:00 2001 From: joelholdsworth Date: Thu, 5 Jul 2007 21:08:40 +0000 Subject: [PATCH] Fixed broken Shift+LeftClick to set stroke function --- doc/keys.xml | 1 + src/dialogs/swatches.cpp | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/keys.xml b/doc/keys.xml index 5beb8efc2..e66ecdc6c 100644 --- a/doc/keys.xml +++ b/doc/keys.xml @@ -176,6 +176,7 @@ RFE).

These keys work both in the floating palette dialog and in the palette frame at the bottom of the window. set fill color on selection set stroke color on selection + set stroke color on selection drag fill color to objects drag stroke color to objects To change fill/stroke of an object by dragging color on it, that object need not be selected. diff --git a/src/dialogs/swatches.cpp b/src/dialogs/swatches.cpp index fafa460c4..0a04d0d47 100644 --- a/src/dialogs/swatches.cpp +++ b/src/dialogs/swatches.cpp @@ -224,7 +224,9 @@ static gboolean onButtonPressed (GtkWidget *widget, GdkEventButton *event, gpoin { if (event->button == 1) { - item->buttonClicked(false); + if(event->state & GDK_SHIFT_MASK) + item->buttonClicked(true); /* the button was pressed with shift held down. set the stroke */ + else item->buttonClicked(false); return TRUE; /* we handled this */ } else if (event->button == 3) -- 2.30.2