diff --git a/ChangeLog b/ChangeLog index b6801d3b6..4ea14eef8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-05-01 Don Allingham + * src/gramps.glade: rearranged filter apply + * src/gramps.py: update to gtk.main() + * src/gramps_main.py: goto active person after model built + 2004-04-29 Don Allingham * src/GenericFilter.py: Add a generic filter that can take a parameter diff --git a/src/gramps.glade b/src/gramps.glade index 98f18f5bc..f5b07110c 100644 --- a/src/gramps.glade +++ b/src/gramps.glade @@ -1251,24 +1251,6 @@ False 6 - - - True - Apply filter using the selected controls - True - _Apply - True - GTK_RELIEF_NORMAL - True - - - - 0 - False - False - - - 200 @@ -1307,6 +1289,24 @@ True + + + + True + Apply filter using the selected controls + True + _Apply + True + GTK_RELIEF_NORMAL + True + + + + 0 + False + False + + 6 diff --git a/src/gramps.py b/src/gramps.py index 444d78954..af6a5a27f 100755 --- a/src/gramps.py +++ b/src/gramps.py @@ -94,7 +94,4 @@ except: import DisplayTrace DisplayTrace.DisplayTrace() -if gtk.pygtk_version[0] == 2 and gtk.pygtk_version[1] >= 3: - gtk.main() -else: - gtk.mainloop() +gtk.main() diff --git a/src/gramps_main.py b/src/gramps_main.py index 02d6ad359..2f45175dd 100755 --- a/src/gramps_main.py +++ b/src/gramps_main.py @@ -1068,6 +1068,7 @@ class Gramps: self.topWindow.set_resizable(gtk.TRUE) self.people_view.apply_filter() + self.goto_active_person() return 1 def on_ok_button2_clicked(self,obj): @@ -1140,7 +1141,7 @@ class Gramps: fs_top.cancel_button.connect('clicked',fs_close_window) fs_top.show() fs_top.run() - + #------------------------------------------------------------------------- for ObjectId in self.db.get_object_keys(): object = self.db.find_object_from_id(ObjectId) @@ -1570,7 +1571,7 @@ class Gramps: self.db.set_save_path(name) res = self.db.get_researcher() owner = GrampsCfg.get_researcher() - + if res.get_name() == "" and owner.get_name(): self.db.set_researcher(owner) @@ -1621,7 +1622,6 @@ class Gramps: #self.full_update() self.change_active_person(self.find_initial_person()) - self.goto_active_person() self.statusbar.set_progress_percentage(0.0) return 1 @@ -1784,7 +1784,4 @@ def set_panel(obj): #------------------------------------------------------------------------- if __name__ == '__main__': Gramps(None) - if ver[0] == 2 and ver[1] >= 3: - gtk.main() - else: - gtk.mainloop() + gtk.main()