diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2018-01-08 13:10:34 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2018-01-08 13:10:34 +0000 |
| commit | 458da60f5bea195b68c4dad5f9b5055572fc39b3 (patch) | |
| tree | 76834cf8c68aa716e2ab7684dadb704ca9549a7c /src/widgets/desktop-widget.cpp | |
| parent | Convert arc-toolbar to use ink-select-one-action. (diff) | |
| download | inkscape-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.cpp | 6 |
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 ); + } } |
