From 4bf94479b67e9e9436f72ff6470cb4b9f576df3d Mon Sep 17 00:00:00 2001 From: John Smith Date: Wed, 1 Aug 2012 16:44:34 +0900 Subject: Fix for 512247 : Show the direction in Object/Transform/Rotate (bzr r11578) --- src/ui/widget/labelled.cpp | 6 ++++++ src/ui/widget/labelled.h | 1 + 2 files changed, 7 insertions(+) (limited to 'src/ui/widget') 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; -- cgit v1.2.3