diff options
Diffstat (limited to 'src/ui/widget')
| -rw-r--r-- | src/ui/widget/preferences-widget.cpp | 5 | ||||
| -rw-r--r-- | src/ui/widget/preferences-widget.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/widget/preferences-widget.cpp b/src/ui/widget/preferences-widget.cpp index b53db0512..c45952c83 100644 --- a/src/ui/widget/preferences-widget.cpp +++ b/src/ui/widget/preferences-widget.cpp @@ -121,6 +121,11 @@ void DialogPage::add_group_header(Glib::ustring name) } } +void DialogPage::set_tip(Gtk::Widget& widget, const Glib::ustring& tip) +{ + _tooltips.set_tip (widget, tip); +} + void PrefCheckButton::init(const Glib::ustring& label, const std::string& prefs_path, const std::string& attr, bool default_value) { diff --git a/src/ui/widget/preferences-widget.h b/src/ui/widget/preferences-widget.h index a5a594114..361d737a8 100644 --- a/src/ui/widget/preferences-widget.h +++ b/src/ui/widget/preferences-widget.h @@ -94,6 +94,7 @@ public: DialogPage(); void add_line(bool indent, const Glib::ustring label, Gtk::Widget& widget, const Glib::ustring suffix, const Glib::ustring& tip, bool expand = true); void add_group_header(Glib::ustring name); + void set_tip(Gtk::Widget& widget, const Glib::ustring& tip); protected: Gtk::Tooltips _tooltips; }; |
