summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui/widget/tolerance-slider.cpp1
-rw-r--r--src/ui/widget/tolerance-slider.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/widget/tolerance-slider.cpp b/src/ui/widget/tolerance-slider.cpp
index dcb6738ac..1ea90a7ee 100644
--- a/src/ui/widget/tolerance-slider.cpp
+++ b/src/ui/widget/tolerance-slider.cpp
@@ -65,6 +65,7 @@ ToleranceSlider::init (const Glib::ustring& label1, const Glib::ustring& tip, co
_hscale->set_draw_value (true);
_hscale->set_value_pos (Gtk::POS_RIGHT);
_hscale->set_size_request (100, -1);
+ _tt.set_tip (*_hscale, tip);
_hbox->add (*_hscale);
// Gtk::Label *theLabel2 = manage (new Gtk::Label (label2));
// _hbox->add (*theLabel2);
diff --git a/src/ui/widget/tolerance-slider.h b/src/ui/widget/tolerance-slider.h
index 92239265d..9860f1e4a 100644
--- a/src/ui/widget/tolerance-slider.h
+++ b/src/ui/widget/tolerance-slider.h
@@ -14,6 +14,7 @@
#ifndef INKSCAPE_UI_WIDGET_TOLERANCE_SLIDER__H_
#define INKSCAPE_UI_WIDGET_TOLERANCE_SLIDER__H_
+#include <gtkmm/tooltips.h>
namespace Inkscape {
namespace UI {
@@ -38,6 +39,7 @@ protected:
void update();
sigc::connection _scale_changed_connection;
Gtk::HScale *_hscale;
+ Gtk::Tooltips _tt;
Registry *_wr;
Glib::ustring _key;
};