summaryrefslogtreecommitdiffstats
path: root/src/ui/toolbar/paintbucket-toolbar.cpp
diff options
context:
space:
mode:
authorAlexander Valavanis <valavanisalex@gmail.com>2019-01-22 00:27:41 +0000
committerAlexander Valavanis <valavanisalex@gmail.com>2019-01-22 00:27:41 +0000
commitdfcb135bd1be493716c95ed4e72964fe99c9df2c (patch)
tree3f588291b0a347d4838097999ec26b485ffeeb26 /src/ui/toolbar/paintbucket-toolbar.cpp
parentCleanup unused toolbar code (diff)
downloadinkscape-dfcb135bd1be493716c95ed4e72964fe99c9df2c.tar.gz
inkscape-dfcb135bd1be493716c95ed4e72964fe99c9df2c.zip
Tidy up toolbox code
Diffstat (limited to 'src/ui/toolbar/paintbucket-toolbar.cpp')
-rw-r--r--src/ui/toolbar/paintbucket-toolbar.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/toolbar/paintbucket-toolbar.cpp b/src/ui/toolbar/paintbucket-toolbar.cpp
index 97bbf1882..1ad411c1c 100644
--- a/src/ui/toolbar/paintbucket-toolbar.cpp
+++ b/src/ui/toolbar/paintbucket-toolbar.cpp
@@ -105,11 +105,12 @@ PaintbucketToolbar::prep(SPDesktop *desktop, GtkActionGroup* mainActions)
"ThresholdAction",
_("Fill Threshold"), _("Threshold:"),
_("The maximum allowed difference between the clicked pixel and the neighboring pixels to be counted in the fill"),
- "/tools/paintbucket/threshold", 5, GTK_WIDGET(desktop->canvas),
+ "/tools/paintbucket/threshold", 5,
TRUE,
"inkscape:paintbucket-threshold", 0, 100.0, 1.0, 10.0,
nullptr, nullptr, 0,
nullptr /*unit tracker*/, 1, 0 );
+ ege_adjustment_action_set_focuswidget(eact, GTK_WIDGET(desktop->canvas));
toolbar->_threshold_adj = Glib::wrap(ege_adjustment_action_get_adjustment(eact));
toolbar->_threshold_adj->signal_value_changed().connect(sigc::mem_fun(*toolbar, &PaintbucketToolbar::threshold_changed));
@@ -135,12 +136,13 @@ PaintbucketToolbar::prep(SPDesktop *desktop, GtkActionGroup* mainActions)
"OffsetAction",
_("Grow/shrink by"), _("Grow/shrink by:"),
_("The amount to grow (positive) or shrink (negative) the created fill path"),
- "/tools/paintbucket/offset", 0, GTK_WIDGET(desktop->canvas),
+ "/tools/paintbucket/offset", 0,
TRUE,
"inkscape:paintbucket-offset", -1e4, 1e4, 0.1, 0.5,
nullptr, nullptr, 0,
toolbar->_tracker,
1, 2);
+ ege_adjustment_action_set_focuswidget(eact, GTK_WIDGET(desktop->canvas));
toolbar->_offset_adj = Glib::wrap(ege_adjustment_action_get_adjustment(eact));
toolbar->_offset_adj->signal_value_changed().connect(sigc::mem_fun(*toolbar, &PaintbucketToolbar::offset_changed));
gtk_action_group_add_action( mainActions, GTK_ACTION(eact) );