diff --git a/ChangeLog b/ChangeLog index 469accfab..3e0fbc29d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,10 @@ 2003-08-15 Alex Roitman * src/gramps.glade: Add Go menu with navigation items. Still have to work out the history menu being built at runtime. Add few shortcuts. + * src/gramps_main.py (change_active_person): Small fix for disabling + back button. + * src/gramps_main.py: Add enabling/disabling for the new back/fwd menu + items. 2003-08-14 Alex Roitman * src/FrenchRepublic.py: Insert encoding line because non-ascii diff --git a/src/gramps.glade b/src/gramps.glade index 66079149b..a6d76565b 100644 --- a/src/gramps.glade +++ b/src/gramps.glade @@ -51,7 +51,7 @@ - + True gtk-new 1 @@ -73,7 +73,7 @@ - + True gtk-open 1 @@ -95,7 +95,7 @@ - + True gtk-save 1 @@ -116,7 +116,7 @@ - + True gtk-save-as 1 @@ -150,7 +150,7 @@ True - + True gtk-convert 1 @@ -171,7 +171,7 @@ - + True gtk-revert-to-saved 1 @@ -192,7 +192,7 @@ - + True gtk-refresh 1 @@ -220,7 +220,7 @@ - + True gtk-quit 1 @@ -255,7 +255,7 @@ - + True gtk-find 1 @@ -276,7 +276,7 @@ - + True gtk-convert 1 @@ -342,10 +342,10 @@ _Back True - + - + True gtk-go-back 1 @@ -365,10 +365,10 @@ _Forward True - + - + True gtk-go-forward 1 @@ -393,10 +393,10 @@ _Home True - + - + True gtk-home 1 @@ -445,7 +445,7 @@ - + True gtk-index 1 @@ -467,7 +467,7 @@ - + True gnome-stock-book-open 1 @@ -531,7 +531,7 @@ - + True gtk-preferences 1 @@ -552,7 +552,7 @@ - + True gtk-home 1 @@ -587,7 +587,7 @@ - + True gtk-help 1 @@ -614,7 +614,7 @@ - + True gtk-jump-to 1 @@ -635,7 +635,7 @@ - + True gnome-stock-mail 1 @@ -689,7 +689,7 @@ - + True gnome-stock-about 1 diff --git a/src/gramps_main.py b/src/gramps_main.py index 10567df4a..08ba5cbc2 100755 --- a/src/gramps_main.py +++ b/src/gramps_main.py @@ -376,6 +376,8 @@ class Gramps: self.editbtn = self.gtop.get_widget('editbtn') self.backbtn = self.gtop.get_widget('back_btn') self.fwdbtn = self.gtop.get_widget('fwd_btn') + self.back = self.gtop.get_widget('back') + self.forward = self.gtop.get_widget('forward') self.gtop.signal_autoconnect({ "on_back_clicked" : self.back_clicked, @@ -470,14 +472,19 @@ class Gramps: self.set_buttons(1) if self.hindex == 0: self.backbtn.set_sensitive(0) + self.back.set_sensitive(0) else: self.backbtn.set_sensitive(1) + self.back.set_sensitive(1) self.fwdbtn.set_sensitive(1) + self.forward.set_sensitive(1) except: self.set_buttons(0) else: self.backbtn.set_sensitive(0) + self.back.set_sensitive(0) self.fwdbtn.set_sensitive(1) + self.forward.set_sensitive(1) def fwd_clicked(self,obj): if self.hindex+1 < len(self.history): @@ -489,15 +496,21 @@ class Gramps: self.set_buttons(1) if self.hindex == len(self.history)-1: self.fwdbtn.set_sensitive(0) + self.forward.set_sensitive(0) else: self.fwdbtn.set_sensitive(1) + self.forward.set_sensitive(1) self.backbtn.set_sensitive(1) + self.back.set_sensitive(1) except: self.backbtn.set_sensitive(1) + self.back.set_sensitive(1) self.set_buttons(0) else: self.fwdbtn.set_sensitive(0) + self.forward.set_sensitive(0) self.backbtn.set_sensitive(1) + self.back.set_sensitive(1) def change_alpha_page(self,obj,junk,page): """Change the page. Be careful not to take action while the pages @@ -1487,12 +1500,19 @@ class Gramps: if self.hindex+1 < len(self.history): self.history = self.history[0:self.hindex+1] self.fwdbtn.set_sensitive(1) + self.forward.set_sensitive(1) else: self.fwdbtn.set_sensitive(0) + self.forward.set_sensitive(0) self.history.append(person.getId()) self.hindex += 1 - self.backbtn.set_sensitive(1) - + if self.hindex > 0: + self.backbtn.set_sensitive(1) + self.back.set_sensitive(1) + else: + self.backbtn.set_sensitive(0) + self.back.set_sensitive(0) + if person: self.set_buttons(1) else: