diff --git a/ChangeLog b/ChangeLog index 309ee2e36..e0ca8a423 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-01-18 Benny Malengier + * src/ExportAssistant.py: workaround around bug + http://bugzilla.gnome.org/show_bug.cgi?id=56070 as indicated on + Ubuntu launchpad, make forward button accept click after it + becomes sensitive. + 2008-01-18 Benny Malengier * src/Editors/_EditChildRef.py: remove debug print statements * src/glade/gramps.glade: wrong visible setting in child ref widget diff --git a/src/ExportAssistant.py b/src/ExportAssistant.py index c6db29933..6ff4e1461 100644 --- a/src/ExportAssistant.py +++ b/src/ExportAssistant.py @@ -109,6 +109,9 @@ class ExportAssistant(gtk.Assistant, ManagedWindow.ManagedWindow) : #set up Assisant gtk.Assistant.__init__(self) + ##workaround around bug http://bugzilla.gnome.org/show_bug.cgi?id=56070 + gtk.Assistant.forall(self, self.get_forward_button) + ## end #set up ManagedWindow self.top_title = _("Export Assistant") @@ -145,7 +148,15 @@ class ExportAssistant(gtk.Assistant, ManagedWindow.ManagedWindow) : #ManagedWindow show method ManagedWindow.ManagedWindow.show(self) - + + def get_forward_button(self, arg): + if isinstance(arg, gtk.HBox): + arg.forall(self._forward_btn) + + def _forward_btn(self, arg): + if isinstance(arg, gtk.Button) and arg.get_label() == 'gtk-go-forward': + self.forward_button = arg + def build_menu_names(self,obj): """Override ManagedWindow method.""" return (self.top_title, None) @@ -391,6 +402,11 @@ class ExportAssistant(gtk.Assistant, ManagedWindow.ManagedWindow) : elif page_number == _ExportAssistant_pages['options'] : self.create_options() self.set_page_complete(page, True) + ##workaround around bug http://bugzilla.gnome.org/show_bug.cgi?id=56070 + if self.forward_button: + self.forward_button.hide() + self.forward_button.show() + ## end elif page == self.chooser : # next page is the file chooser, reset filename, keep folder where user was folder, name = self.suggest_filename()