From abc54e5360aa0b50679226ba73982f4e97f2f20c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ren=C3=A9=20Stadler?= Date: Fri, 7 Dec 2007 12:02:15 +0200 Subject: [PATCH] Add tooltip to vertical timeline widget --- debug-viewer/GstDebugViewer/Plugins/Timeline.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debug-viewer/GstDebugViewer/Plugins/Timeline.py b/debug-viewer/GstDebugViewer/Plugins/Timeline.py index a83e2e3..5676ca7 100644 --- a/debug-viewer/GstDebugViewer/Plugins/Timeline.py +++ b/debug-viewer/GstDebugViewer/Plugins/Timeline.py @@ -269,6 +269,13 @@ class VerticalTimelineWidget (gtk.DrawingArea): self.connect ("expose-event", self.__handle_expose_event) self.connect ("size-request", self.__handle_size_request) + try: + self.set_tooltip_text (_("Vertical timeline\n" + "Different colors represent different threads")) + except AttributeError: + # Compatibility. + pass + def __handle_expose_event (self, self_, event): self.__draw (self.window) -- 2.7.4