From 550871907098e1bf82d94212093edc1c2e34e253 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Wed, 12 Jan 2011 18:09:35 +0000 Subject: [PATCH] Add tooltips to bottombar gramplets svn: r16370 --- src/plugins/gramplet/PersonAttributes.py | 3 +++ src/plugins/gramplet/PersonDetails.py | 1 + src/plugins/gramplet/PersonGallery.py | 3 +++ src/plugins/gramplet/PersonResidence.py | 2 ++ 4 files changed, 9 insertions(+) diff --git a/src/plugins/gramplet/PersonAttributes.py b/src/plugins/gramplet/PersonAttributes.py index 109ac71d3..a928540fa 100644 --- a/src/plugins/gramplet/PersonAttributes.py +++ b/src/plugins/gramplet/PersonAttributes.py @@ -38,6 +38,9 @@ class PersonAttributes(Gramplet): """ Build the GUI interface. """ + tip = _('Double-click on a row to view a quick report showing ' + \ + 'all people with the selected attribute.') + self.gui.tooltip = tip top = gtk.TreeView() titles = [(_('Key'), 1, 100), (_('Value'), 2, 100)] diff --git a/src/plugins/gramplet/PersonDetails.py b/src/plugins/gramplet/PersonDetails.py index d12e947df..8d52f3a59 100644 --- a/src/plugins/gramplet/PersonDetails.py +++ b/src/plugins/gramplet/PersonDetails.py @@ -42,6 +42,7 @@ class PersonDetails(Gramplet): """ Build the GUI interface. """ + self.gui.tooltip = '' self.load_obj = None self.load_rect = None top = gtk.HBox() diff --git a/src/plugins/gramplet/PersonGallery.py b/src/plugins/gramplet/PersonGallery.py index be710bcc5..7366e8762 100644 --- a/src/plugins/gramplet/PersonGallery.py +++ b/src/plugins/gramplet/PersonGallery.py @@ -38,6 +38,9 @@ class PersonGallery(Gramplet): """ Build the GUI interface. """ + tip = _('Double-click on a picture to view it in the default image ' + \ + 'viewer application.') + self.gui.tooltip = tip self.image_list = [] self.top = gtk.HBox(False, 3) return self.top diff --git a/src/plugins/gramplet/PersonResidence.py b/src/plugins/gramplet/PersonResidence.py index 14e869063..a35749c6c 100644 --- a/src/plugins/gramplet/PersonResidence.py +++ b/src/plugins/gramplet/PersonResidence.py @@ -40,6 +40,8 @@ class PersonResidence(Gramplet): """ Build the GUI interface. """ + tip = _('Double-click on a row to edit the selected event.') + self.gui.tooltip = tip top = gtk.TreeView() titles = [('', NOSORT, 50,), (_('Date'), 1, 200),