From 16a80b2815c9adff636d36836eb3d4df13fd97eb Mon Sep 17 00:00:00 2001 From: japm48 <japm48@users.noreply.github.com> Date: Thu, 2 Apr 2020 23:33:37 +0200 Subject: grc: show file path as tooltip in tab label Fixes #3294. --- grc/gui/Notebook.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'grc/gui/Notebook.py') diff --git a/grc/gui/Notebook.py b/grc/gui/Notebook.py index 77f85fd5f2..8698e9334b 100644 --- a/grc/gui/Notebook.py +++ b/grc/gui/Notebook.py @@ -162,6 +162,15 @@ class Page(Gtk.HBox): """ self.label.set_markup(markup) + def set_tooltip(self, text): + """ + Set the tooltip text in this label. + + Args: + text: the new tooltip text + """ + self.label.set_tooltip_text(text) + def get_read_only(self): """ Get the read-only state of the file. -- cgit v1.2.3