From e21c00a50411a45195aa73b70f20f56254c4543b Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Thu, 30 Nov 2006 06:56:15 +0000 Subject: [PATCH] 2006-11-29 Alex Roitman * src/GrampsWidgets.py (PlaceEntry.set_button): Dynamically set tooltips. * src/glade/gramps.glade (event_edit, eref-edit): Do not set tooltips. svn: r7734 --- gramps2/ChangeLog | 5 +++++ gramps2/src/GrampsWidgets.py | 3 +++ gramps2/src/glade/gramps.glade | 2 -- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index e27090025..5175bdfa8 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,8 @@ +2006-11-29 Alex Roitman + * src/GrampsWidgets.py (PlaceEntry.set_button): Dynamically set + tooltips. + * src/glade/gramps.glade (event_edit, eref-edit): Do not set tooltips. + 2006-11-29 Martin Hawlisch * src/DataViews/_RelationView.py (write_title): Always write Label for birth and death. diff --git a/gramps2/src/GrampsWidgets.py b/gramps2/src/GrampsWidgets.py index fc749536c..781b3a3fa 100644 --- a/gramps2/src/GrampsWidgets.py +++ b/gramps2/src/GrampsWidgets.py @@ -534,6 +534,7 @@ class PlaceEntry: self.set_val = set_val self.uistate = uistate self.track = track + self.tooltips = gtk.Tooltips() self.obj.drag_dest_set(gtk.DEST_DEFAULT_ALL, [DdTargets.PLACE_LINK.target()], gtk.gdk.ACTION_COPY) @@ -627,6 +628,7 @@ class PlaceEntry: image.set_from_stock(gtk.STOCK_EDIT,gtk.ICON_SIZE_BUTTON) image.show() self.share.add(image) + self.tooltips.set_tip(self.add_del, _('Remove place')) else: image = gtk.Image() image.set_from_stock(gtk.STOCK_ADD,gtk.ICON_SIZE_BUTTON) @@ -636,3 +638,4 @@ class PlaceEntry: image.set_from_stock(gtk.STOCK_INDEX,gtk.ICON_SIZE_BUTTON) image.show() self.share.add(image) + self.tooltips.set_tip(self.add_del, _('Add a new place')) diff --git a/gramps2/src/glade/gramps.glade b/gramps2/src/glade/gramps.glade index e7464299a..851bbd5f7 100644 --- a/gramps2/src/glade/gramps.glade +++ b/gramps2/src/glade/gramps.glade @@ -7001,7 +7001,6 @@ True - Add a new place True GTK_RELIEF_NONE True @@ -10865,7 +10864,6 @@ True - Add a new place True GTK_RELIEF_NONE True