summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRalf Stephan <ralf@ark.in-berlin.de>2006-01-31 18:55:59 +0000
committerrwst <rwst@users.sourceforge.net>2006-01-31 18:55:59 +0000
commit0009ecc86b651f574d7da45b876ab1c128d47922 (patch)
tree7fd5b19171305bc59a8aa49b33eceeabaee7fb49 /src
parentseparated doxygen main page from main.cpp for readability (diff)
downloadinkscape-0009ecc86b651f574d7da45b876ab1c128d47922.tar.gz
inkscape-0009ecc86b651f574d7da45b876ab1c128d47922.zip
add tooltips to tolerance slider
(bzr r63)
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;
};