From: rwst Date: Tue, 31 Jan 2006 18:55:59 +0000 (+0000) Subject: add tooltips to tolerance slider X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=917f65c6e18b72abba577f550810917b9f4fe6dc;p=inkscape.git add tooltips to tolerance slider --- 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 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; };