summaryrefslogtreecommitdiffstats
path: root/src/widgets/desktop-widget.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2018-01-08 13:10:34 +0000
committerTavmjong Bah <tavmjong@free.fr>2018-01-08 13:10:34 +0000
commit458da60f5bea195b68c4dad5f9b5055572fc39b3 (patch)
tree76834cf8c68aa716e2ab7684dadb704ca9549a7c /src/widgets/desktop-widget.cpp
parentConvert arc-toolbar to use ink-select-one-action. (diff)
downloadinkscape-458da60f5bea195b68c4dad5f9b5055572fc39b3.tar.gz
inkscape-458da60f5bea195b68c4dad5f9b5055572fc39b3.zip
Restore ability to switch mode while using spray tool (is this even useful?).
Diffstat (limited to 'src/widgets/desktop-widget.cpp')
-rw-r--r--src/widgets/desktop-widget.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/widgets/desktop-widget.cpp b/src/widgets/desktop-widget.cpp
index 0f5d8b973..fd5fd5de6 100644
--- a/src/widgets/desktop-widget.cpp
+++ b/src/widgets/desktop-widget.cpp
@@ -49,6 +49,7 @@
#include "ui/dialog/swatches.h"
#include "ui/icon-names.h"
#include "ui/widget/dock.h"
+#include "ui/widget/ink-select-one-action.h"
#include "ui/widget/layer-selector.h"
#include "ui/widget/selected-style.h"
#include "ui/uxmanager.h"
@@ -1557,9 +1558,12 @@ void
SPDesktopWidget::setToolboxSelectOneValue (gchar const *id, int value)
{
gpointer hb = sp_search_by_data_recursive(aux_toolbox, (gpointer) id);
- if (hb) {
+ if (IS_EGE_SELECT_ONE_ACTION(hb)) {
ege_select_one_action_set_active(EGE_SELECT_ONE_ACTION(hb), value);
}
+ if (static_cast<InkSelectOneAction*>(hb)) {
+ static_cast<InkSelectOneAction*>(hb)->set_active( value );
+ }
}