From 5a6e6959dee6ca6431dc0b994901ee7e7055e383 Mon Sep 17 00:00:00 2001 From: Serge Noiraud Date: Thu, 26 Nov 2009 20:54:59 +0000 Subject: [PATCH] GeoView : workaround to correct issue 3341. backward and forward button suppression in the toolbar. These functionalities are always available with the mouse in the html page. svn: r13677 --- src/DataViews/GeoView.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/DataViews/GeoView.py b/src/DataViews/GeoView.py index cd40ff7fc..db0dabbfe 100644 --- a/src/DataViews/GeoView.py +++ b/src/DataViews/GeoView.py @@ -446,8 +446,9 @@ class HtmlView(PageView.PageView): """ Set the backward and forward button in accordance to the browser. """ - self.forward_action.set_sensitive(self.renderer.can_go_forward()) - self.back_action.set_sensitive(self.renderer.can_go_back()) + pass + #self.forward_action.set_sensitive(self.renderer.can_go_forward()) + #self.back_action.set_sensitive(self.renderer.can_go_back()) def open(self, url): """ @@ -722,14 +723,14 @@ class GeoView(HtmlView): """ Specifies the UIManager XML code that defines the menus and buttons associated with the interface. - """ - return ''' - + """ + return ''' + @@ -747,9 +748,9 @@ class GeoView(HtmlView): Required define_actions function for PageView. Builds the action group information required. """ - HtmlView._define_actions_fw_bw(self) - self.forward_action.set_sensitive(False) - self.back_action.set_sensitive(False) + #HtmlView._define_actions_fw_bw(self) + #self.forward_action.set_sensitive(False) + #self.back_action.set_sensitive(False) self._add_action('OpenStreetMap', 'gramps-geo-mainmap', _('_OpenStreetMap'), callback=self._select_openstreetmap_map,