summaryrefslogtreecommitdiffstats
path: root/views/widget/tooltip_window_gtk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/widget/tooltip_window_gtk.cc')
-rw-r--r--views/widget/tooltip_window_gtk.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/views/widget/tooltip_window_gtk.cc b/views/widget/tooltip_window_gtk.cc
index 3b8bed7..444e67e 100644
--- a/views/widget/tooltip_window_gtk.cc
+++ b/views/widget/tooltip_window_gtk.cc
@@ -4,6 +4,8 @@
#include "views/widget/tooltip_window_gtk.h"
+#include <gtk/gtk.h>
+
#include "base/utf_string_conversions.h"
namespace views {
@@ -27,6 +29,10 @@ void TooltipWindowGtk::SetTooltipText(const std::wstring& text) {
gtk_label_set_text(label(), utf8.c_str());
}
+GtkLabel* TooltipWindowGtk::label() {
+ return GTK_LABEL(label_);
+}
+
void TooltipWindowGtk::Init() {
// Creates and setup tooltip window.
window_ = gtk_window_new(GTK_WINDOW_POPUP);