summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/spin-button-tool-item.cpp
diff options
context:
space:
mode:
authorAlexander Valavanis <valavanisalex@gmail.com>2019-02-02 20:16:00 +0000
committerAlexander Valavanis <valavanisalex@gmail.com>2019-02-02 20:16:00 +0000
commitfa98857205dbaf2c15bb302e3eb28f4738fb6415 (patch)
tree5c91217ada74209becdf97006f271b749e51d032 /src/ui/widget/spin-button-tool-item.cpp
parentobject properties dialog: label placeholder (diff)
downloadinkscape-fa98857205dbaf2c15bb302e3eb28f4738fb6415.tar.gz
inkscape-fa98857205dbaf2c15bb302e3eb28f4738fb6415.zip
TweakToolbar: GtkAction migration
Diffstat (limited to 'src/ui/widget/spin-button-tool-item.cpp')
-rw-r--r--src/ui/widget/spin-button-tool-item.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ui/widget/spin-button-tool-item.cpp b/src/ui/widget/spin-button-tool-item.cpp
index 140df1586..b5eefdbb1 100644
--- a/src/ui/widget/spin-button-tool-item.cpp
+++ b/src/ui/widget/spin-button-tool-item.cpp
@@ -359,7 +359,7 @@ SpinButtonToolItem::SpinButtonToolItem(const Glib::ustring name,
const Glib::ustring& label_text,
Glib::RefPtr<Gtk::Adjustment>& adjustment,
double climb_rate,
- double digits)
+ int digits)
: _btn(Gtk::manage(new SpinButton(adjustment, climb_rate, digits))),
_name(std::move(name)),
_label_text(label_text),
@@ -505,6 +505,11 @@ SpinButtonToolItem::set_custom_numeric_menu_data(std::vector<double>&
}
}
+Glib::RefPtr<Gtk::Adjustment>
+SpinButtonToolItem::get_adjustment()
+{
+ return _btn->get_adjustment();
+}
} // namespace Widget
} // namespace UI
} // namespace Inkscape