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/box3d-toolbar.cpp | |
| parent | Cleanup unused toolbar code (diff) | |
| download | inkscape-dfcb135bd1be493716c95ed4e72964fe99c9df2c.tar.gz inkscape-dfcb135bd1be493716c95ed4e72964fe99c9df2c.zip | |
Tidy up toolbox code
Diffstat (limited to 'src/ui/toolbar/box3d-toolbar.cpp')
| -rw-r--r-- | src/ui/toolbar/box3d-toolbar.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/toolbar/box3d-toolbar.cpp b/src/ui/toolbar/box3d-toolbar.cpp index bb2525153..e42700c93 100644 --- a/src/ui/toolbar/box3d-toolbar.cpp +++ b/src/ui/toolbar/box3d-toolbar.cpp @@ -90,11 +90,11 @@ Box3DToolbar::prep(SPDesktop *desktop, GtkActionGroup* mainActions) // Translators: PL is short for 'perspective line' _("Angle of PLs in X direction"), "/tools/shapes/3dbox/box3d_angle_x", 30, - GTK_WIDGET(desktop->canvas), TRUE, "altx-box3d", -360.0, 360.0, 1.0, 10.0, labels, values, G_N_ELEMENTS(labels) ); + ege_adjustment_action_set_focuswidget(holder->_angle_x_action, GTK_WIDGET(desktop->canvas)); holder->_angle_x_adj = Glib::wrap(ege_adjustment_action_get_adjustment(holder->_angle_x_action)); holder->_angle_x_adj->signal_value_changed().connect(sigc::bind(sigc::mem_fun(*holder, &Box3DToolbar::angle_value_changed), holder->_angle_x_adj, Proj::X)); @@ -131,11 +131,11 @@ Box3DToolbar::prep(SPDesktop *desktop, GtkActionGroup* mainActions) // Translators: PL is short for 'perspective line' _("Angle of PLs in Y direction"), "/tools/shapes/3dbox/box3d_angle_y", 30, - GTK_WIDGET(desktop->canvas), FALSE, nullptr, -360.0, 360.0, 1.0, 10.0, labels, values, G_N_ELEMENTS(labels) ); + ege_adjustment_action_set_focuswidget(holder->_angle_y_action, GTK_WIDGET(desktop->canvas)); holder->_angle_y_adj = Glib::wrap(ege_adjustment_action_get_adjustment(holder->_angle_y_action)); holder->_angle_y_adj->signal_value_changed().connect(sigc::bind(sigc::mem_fun(*holder, &Box3DToolbar::angle_value_changed), holder->_angle_y_adj, Proj::Y)); @@ -171,11 +171,11 @@ Box3DToolbar::prep(SPDesktop *desktop, GtkActionGroup* mainActions) // Translators: PL is short for 'perspective line' _("Angle of PLs in Z direction"), "/tools/shapes/3dbox/box3d_angle_z", 30, - GTK_WIDGET(desktop->canvas), FALSE, nullptr, -360.0, 360.0, 1.0, 10.0, labels, values, G_N_ELEMENTS(labels) ); + ege_adjustment_action_set_focuswidget(holder->_angle_z_action, GTK_WIDGET(desktop->canvas)); holder->_angle_z_adj = Glib::wrap(ege_adjustment_action_get_adjustment(holder->_angle_z_action)); holder->_angle_z_adj->signal_value_changed().connect(sigc::bind(sigc::mem_fun(*holder, &Box3DToolbar::angle_value_changed), holder->_angle_z_adj, Proj::Z)); |
