From ea81233d0495d5a1590a70a42ee60db83c5572d0 Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Thu, 5 Jul 2007 21:08:40 +0000 Subject: Fixed broken Shift+LeftClick to set stroke function (bzr r3187) --- src/dialogs/swatches.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/dialogs') 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) -- cgit v1.2.3