I don't know how to add a patch, so I copy it :
--- /usr/share/gramps/DataViews/GeoView.py.org  2009-11-25 10:52:12.000000000 
+0100
+++ /usr/share/gramps/DataViews/GeoView.py      2009-11-25 10:53:15.000000000 
+0100
@@ -417,8 +417,9 @@
         """
         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):
         """
@@ -698,6 +699,11 @@
         """
         Specifies the UIManager XML code that defines the menus and buttons
         associated with the interface.
+            <placeholder name="CommonNavigation">
+              <toolitem action="Back"/>  
+              <toolitem action="Forward"/>  
+              <toolitem action="Refresh"/>
+            </placeholder>
         """
         if Config.get(Config.GEOVIEW_GOOGLEMAPS):
             alternate_map = "GoogleMaps"
@@ -709,11 +715,6 @@
             alternate_map = "MicrosoftMaps"
         return '''<ui>
           <toolbar name="ToolBar">
-            <placeholder name="CommonNavigation">
-              <toolitem action="Back"/>  
-              <toolitem action="Forward"/>  
-              <toolitem action="Refresh"/>
-            </placeholder>
             <placeholder name="CommonEdit">
               <toolitem action="OpenStreetMap"/>
               <toolitem action="%s"/>
@@ -731,9 +732,9 @@
         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-openstreetmap', 
                          _('_OpenStreetMap'),
                          callback=self.select_openstreetmap_map,

-- 
Gramps crashes after some minutes
https://bugs.launchpad.net/bugs/448670
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to