summaryrefslogtreecommitdiffstats
path: root/src/ui/widget
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/widget')
-rw-r--r--src/ui/widget/labelled.cpp6
-rw-r--r--src/ui/widget/labelled.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/ui/widget/labelled.cpp b/src/ui/widget/labelled.cpp
index df800545a..2dda941f2 100644
--- a/src/ui/widget/labelled.cpp
+++ b/src/ui/widget/labelled.cpp
@@ -71,6 +71,12 @@ Labelled::setLabelText(const Glib::ustring &str)
_label->set_text(str);
}
+void
+Labelled::setTooltipText(const Glib::ustring &tooltip)
+{
+ _label->set_tooltip_text(tooltip);
+ _widget->set_tooltip_text(tooltip);
+}
} // namespace Widget
} // namespace UI
diff --git a/src/ui/widget/labelled.h b/src/ui/widget/labelled.h
index e49b289fe..030fd0d93 100644
--- a/src/ui/widget/labelled.h
+++ b/src/ui/widget/labelled.h
@@ -54,6 +54,7 @@ public:
Gtk::Label const *getLabel() const;
void setLabelText(const Glib::ustring &str);
+ void setTooltipText(const Glib::ustring &tooltip);
protected:
Gtk::Widget *_widget;