From: joelholdsworth
Date: Thu, 5 Jul 2007 21:08:40 +0000 (+0000)
Subject: Fixed broken Shift+LeftClick to set stroke function
X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2bebc708c1f2a0a4d243f6dc20a741099a62c8c8;p=inkscape.git
Fixed broken Shift+LeftClick to set stroke function
---
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)