diff options
| author | Alexander Valavanis <valavanisalex@gmail.com> | 2019-01-22 00:27:41 +0000 |
|---|---|---|
| committer | Alexander Valavanis <valavanisalex@gmail.com> | 2019-01-22 00:27:41 +0000 |
| commit | dfcb135bd1be493716c95ed4e72964fe99c9df2c (patch) | |
| tree | 3f588291b0a347d4838097999ec26b485ffeeb26 /src/ui/toolbar/node-toolbar.cpp | |
| parent | Cleanup unused toolbar code (diff) | |
| download | inkscape-dfcb135bd1be493716c95ed4e72964fe99c9df2c.tar.gz inkscape-dfcb135bd1be493716c95ed4e72964fe99c9df2c.zip | |
Tidy up toolbox code
Diffstat (limited to '')
| -rw-r--r-- | src/ui/toolbar/node-toolbar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/toolbar/node-toolbar.cpp b/src/ui/toolbar/node-toolbar.cpp index 6b11092c5..472d99c43 100644 --- a/src/ui/toolbar/node-toolbar.cpp +++ b/src/ui/toolbar/node-toolbar.cpp @@ -479,11 +479,11 @@ NodeToolbar::prep(SPDesktop *desktop, GtkActionGroup* mainActions) holder->_nodes_x_action = create_adjustment_action( "NodeXAction", _("X coordinate:"), _("X:"), _("X coordinate of selected node(s)"), "/tools/nodes/Xcoord", 0, - GTK_WIDGET(desktop->canvas), TRUE, "altx-nodes", -1e6, 1e6, SPIN_STEP, SPIN_PAGE_STEP, labels, values, G_N_ELEMENTS(labels), holder->_tracker ); + ege_adjustment_action_set_focuswidget(holder->_nodes_x_action, GTK_WIDGET(desktop->canvas)); holder->_nodes_x_adj = Glib::wrap(ege_adjustment_action_get_adjustment(holder->_nodes_x_action)); holder->_nodes_x_adj->signal_value_changed().connect(sigc::bind(sigc::mem_fun(*holder, &NodeToolbar::value_changed), Geom::X)); gtk_action_set_sensitive( GTK_ACTION(holder->_nodes_x_action), FALSE ); @@ -497,11 +497,11 @@ NodeToolbar::prep(SPDesktop *desktop, GtkActionGroup* mainActions) holder->_nodes_y_action = create_adjustment_action( "NodeYAction", _("Y coordinate:"), _("Y:"), _("Y coordinate of selected node(s)"), "/tools/nodes/Ycoord", 0, - GTK_WIDGET(desktop->canvas), FALSE, nullptr, -1e6, 1e6, SPIN_STEP, SPIN_PAGE_STEP, labels, values, G_N_ELEMENTS(labels), holder->_tracker ); + ege_adjustment_action_set_focuswidget(holder->_nodes_y_action, GTK_WIDGET(desktop->canvas)); holder->_nodes_y_adj = Glib::wrap(ege_adjustment_action_get_adjustment(holder->_nodes_y_action)); holder->_nodes_y_adj->signal_value_changed().connect(sigc::bind(sigc::mem_fun(*holder, &NodeToolbar::value_changed), Geom::Y)); gtk_action_set_sensitive( GTK_ACTION(holder->_nodes_y_action), FALSE ); |
