diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 6505720d3..2d8e285ca 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,4 +1,7 @@ 2006-03-05 Don Allingham + * src/TipOfDay.py: Fix the image location + * src/Editors/_EditPerson.py: fix focus_out_event + * src/ViewManager.py: replace the data * src/DataViews/_RepositoryView.py: column editing * src/DataViews/_MediaView.py: column editing * src/DataViews/_SourceView.py: column editing diff --git a/gramps2/src/Editors/_EditPerson.py b/gramps2/src/Editors/_EditPerson.py index 8a571d4d7..b381c9e4c 100644 --- a/gramps2/src/Editors/_EditPerson.py +++ b/gramps2/src/Editors/_EditPerson.py @@ -340,9 +340,10 @@ class EditPerson(EditPrimary): def given_focus_out_event (self, entry, event): if not self.should_guess_gender: return False - - gender = self.given.get_value() - self.gender.force(self.db.genderStats.guess_gender()) + try: + self.gender.force(self.db.genderStats.guess_gender(entry.get_text())) + except: + return False return False def load_photo(self,photo): diff --git a/gramps2/src/TipOfDay.py b/gramps2/src/TipOfDay.py index 25efdaf26..bf9c58e91 100644 --- a/gramps2/src/TipOfDay.py +++ b/gramps2/src/TipOfDay.py @@ -28,6 +28,7 @@ from xml.parsers.expat import ParserCreate from random import Random from gettext import gettext as _ +import os #------------------------------------------------------------------------- # @@ -57,6 +58,8 @@ class TipOfDay: top = xml.get_widget("tod") tip = xml.get_widget("tip") use = xml.get_widget('usetips') + image = xml.get_widget('image') + image.set_from_file(os.path.join(const.image_dir,'splash.jpg')) alt_title = xml.get_widget("title") tmsg = _("GRAMPS' Tip of the Day") diff --git a/gramps2/src/glade/gramps.glade b/gramps2/src/glade/gramps.glade index 5c39d952e..f017d6e1d 100644 --- a/gramps2/src/glade/gramps.glade +++ b/gramps2/src/glade/gramps.glade @@ -11899,9 +11899,8 @@ Text Beside Icons - + True - splash.jpg 0.5 0.5 0