diff --git a/gramps2/src/Editors/_EditFamily.py b/gramps2/src/Editors/_EditFamily.py index d1c0f9715..b8a2249fd 100644 --- a/gramps2/src/Editors/_EditFamily.py +++ b/gramps2/src/Editors/_EditFamily.py @@ -311,6 +311,7 @@ class EditFamily(EditPrimary): def __init__(self,dbstate, uistate, track, family): + self.tooltips = gtk.Tooltips() EditPrimary.__init__(self, dbstate, uistate, track, family, dbstate.db.get_family_from_handle) @@ -391,6 +392,11 @@ class EditFamily(EditPrimary): self.fbutton = self.top.get_widget('fbutton') self.fbutton2= self.top.get_widget('fbutton2') + self.tooltips.set_tip(self.mbutton2, + _("Add a new person as the mother")) + self.tooltips.set_tip(self.fbutton2, + _("Add a new person as the father")) + self.mbox = self.top.get_widget('mbox') self.fbox = self.top.get_widget('fbox') @@ -487,11 +493,15 @@ class EditFamily(EditPrimary): def update_father(self,handle): self.load_parent(handle, self.fbox, self.fbirth, - self.fdeath, self.fbutton, self.fbutton2) + self.fdeath, self.fbutton, self.fbutton2, + _("Select a person as the father"), + _("Remove the person as the father")) def update_mother(self,handle): self.load_parent(handle, self.mbox, self.mbirth, - self.mdeath, self.mbutton, self.mbutton2) + self.mdeath, self.mbutton, self.mbutton2, + _("Select a person as the father"), + _("Remove the person as the father")) def add_mother_clicked(self, obj): from Editors import EditPerson @@ -643,7 +653,7 @@ class EditFamily(EditPrimary): pass def load_parent(self, handle, box, birth_obj, death_obj, - btn_obj, btn2_obj): + btn_obj, btn2_obj, add_msg, del_msg): is_used = handle != None @@ -668,6 +678,7 @@ class EditFamily(EditPrimary): del_image = gtk.Image() del_image.show() del_image.set_from_stock(gtk.STOCK_REMOVE,gtk.ICON_SIZE_BUTTON) + self.tooltips.set_tip(btn_obj, del_msg) btn_obj.add(del_image) box.pack_start(LinkBox( @@ -683,6 +694,7 @@ class EditFamily(EditPrimary): add_image = gtk.Image() add_image.show() add_image.set_from_stock(gtk.STOCK_INDEX,gtk.ICON_SIZE_BUTTON) + self.tooltips.set_tip(btn_obj, add_msg) btn_obj.add(add_image) birth_obj.set_text(birth) diff --git a/gramps2/src/GrampsWidgets.py b/gramps2/src/GrampsWidgets.py index 8f370cf33..7eb6bae1a 100644 --- a/gramps2/src/GrampsWidgets.py +++ b/gramps2/src/GrampsWidgets.py @@ -78,7 +78,8 @@ class LinkLabel(gtk.EventBox): class IconButton(gtk.EventBox): - def __init__(self, func, handle, icon=gtk.STOCK_EDIT, size=gtk.ICON_SIZE_MENU): + def __init__(self, func, handle, icon=gtk.STOCK_EDIT, + size=gtk.ICON_SIZE_MENU): gtk.EventBox.__init__(self) image = gtk.Image() image.set_from_stock(icon, size) diff --git a/gramps2/src/ViewManager.py b/gramps2/src/ViewManager.py index e0d52b75f..38069cd59 100644 --- a/gramps2/src/ViewManager.py +++ b/gramps2/src/ViewManager.py @@ -119,6 +119,7 @@ uidefault = ''' + @@ -323,7 +324,7 @@ class ViewManager: _('_Abandon changes and quit')), ('CmpMerge', None, _('_Compare and merge')), ('FastMerge', None, _('_Fast merge')), - ('ScratchPad', gtk.STOCK_PASTE, _('_ScratchPad'), None, None, + ('ScratchPad', gtk.STOCK_PASTE, _('_ScratchPad'), "", None, self.scratchpad), ('Import', gtk.STOCK_CONVERT, _('_Import'), "i", None, self.import_data), diff --git a/gramps2/src/glade/gramps.glade b/gramps2/src/glade/gramps.glade index 54ef8c9a9..021a9345e 100644 --- a/gramps2/src/glade/gramps.glade +++ b/gramps2/src/glade/gramps.glade @@ -834,7 +834,6 @@ True - Remove selected event reference True GTK_RELIEF_NONE True @@ -862,7 +861,6 @@ True - Remove selected event reference True GTK_RELIEF_NONE True @@ -1120,7 +1118,6 @@ True - Remove selected event reference True GTK_RELIEF_NONE True @@ -1148,7 +1145,6 @@ True - Remove selected event reference True GTK_RELIEF_NONE True