summaryrefslogtreecommitdiffstats
path: root/src/dialogs/swatches.cpp
diff options
context:
space:
mode:
authorJoel Holdsworth <joel@airwebreathe.org.uk>2007-07-05 21:08:40 +0000
committerjoelholdsworth <joelholdsworth@users.sourceforge.net>2007-07-05 21:08:40 +0000
commitea81233d0495d5a1590a70a42ee60db83c5572d0 (patch)
tree949135837e18c8073c811bfba388c92ed80a2f82 /src/dialogs/swatches.cpp
parentmake subtree monitoring part of XML::Node's interface (diff)
downloadinkscape-ea81233d0495d5a1590a70a42ee60db83c5572d0.tar.gz
inkscape-ea81233d0495d5a1590a70a42ee60db83c5572d0.zip
Fixed broken Shift+LeftClick to set stroke function
(bzr r3187)
Diffstat (limited to 'src/dialogs/swatches.cpp')
-rw-r--r--src/dialogs/swatches.cpp4
1 files changed, 3 insertions, 1 deletions
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)