* 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 <benny.malengier@gramps-project.org>


svn: r9879
This commit is contained in:
Benny Malengier 2008-01-18 09:58:50 +00:00
parent 700ee1b18b
commit 37d60133ed
2 changed files with 23 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-01-18 Benny Malengier <benny.malengier@gramps-project.org>
* 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 <benny.malengier@gramps-project.org> 2008-01-18 Benny Malengier <benny.malengier@gramps-project.org>
* src/Editors/_EditChildRef.py: remove debug print statements * src/Editors/_EditChildRef.py: remove debug print statements
* src/glade/gramps.glade: wrong visible setting in child ref widget * src/glade/gramps.glade: wrong visible setting in child ref widget

View File

@ -109,6 +109,9 @@ class ExportAssistant(gtk.Assistant, ManagedWindow.ManagedWindow) :
#set up Assisant #set up Assisant
gtk.Assistant.__init__(self) 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 #set up ManagedWindow
self.top_title = _("Export Assistant") self.top_title = _("Export Assistant")
@ -145,7 +148,15 @@ class ExportAssistant(gtk.Assistant, ManagedWindow.ManagedWindow) :
#ManagedWindow show method #ManagedWindow show method
ManagedWindow.ManagedWindow.show(self) 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): def build_menu_names(self,obj):
"""Override ManagedWindow method.""" """Override ManagedWindow method."""
return (self.top_title, None) return (self.top_title, None)
@ -391,6 +402,11 @@ class ExportAssistant(gtk.Assistant, ManagedWindow.ManagedWindow) :
elif page_number == _ExportAssistant_pages['options'] : elif page_number == _ExportAssistant_pages['options'] :
self.create_options() self.create_options()
self.set_page_complete(page, True) 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 : elif page == self.chooser :
# next page is the file chooser, reset filename, keep folder where user was # next page is the file chooser, reset filename, keep folder where user was
folder, name = self.suggest_filename() folder, name = self.suggest_filename()