GeoView : workaround to correct issue 3341.
backward and forward button suppression in the toolbar. These functionalities are always available with the mouse <right button> in the html page. svn: r13677
This commit is contained in:
@@ -446,8 +446,9 @@ class HtmlView(PageView.PageView):
|
|||||||
"""
|
"""
|
||||||
Set the backward and forward button in accordance to the browser.
|
Set the backward and forward button in accordance to the browser.
|
||||||
"""
|
"""
|
||||||
self.forward_action.set_sensitive(self.renderer.can_go_forward())
|
pass
|
||||||
self.back_action.set_sensitive(self.renderer.can_go_back())
|
#self.forward_action.set_sensitive(self.renderer.can_go_forward())
|
||||||
|
#self.back_action.set_sensitive(self.renderer.can_go_back())
|
||||||
|
|
||||||
def open(self, url):
|
def open(self, url):
|
||||||
"""
|
"""
|
||||||
@@ -722,14 +723,14 @@ class GeoView(HtmlView):
|
|||||||
"""
|
"""
|
||||||
Specifies the UIManager XML code that defines the menus and buttons
|
Specifies the UIManager XML code that defines the menus and buttons
|
||||||
associated with the interface.
|
associated with the interface.
|
||||||
"""
|
|
||||||
return '''<ui>
|
|
||||||
<toolbar name="ToolBar">
|
|
||||||
<placeholder name="CommonNavigation">
|
<placeholder name="CommonNavigation">
|
||||||
<toolitem action="Back"/>
|
<toolitem action="Back"/>
|
||||||
<toolitem action="Forward"/>
|
<toolitem action="Forward"/>
|
||||||
<toolitem action="Refresh"/>
|
<toolitem action="Refresh"/>
|
||||||
</placeholder>
|
</placeholder>
|
||||||
|
"""
|
||||||
|
return '''<ui>
|
||||||
|
<toolbar name="ToolBar">
|
||||||
<placeholder name="CommonEdit">
|
<placeholder name="CommonEdit">
|
||||||
<toolitem action="OpenStreetMap"/>
|
<toolitem action="OpenStreetMap"/>
|
||||||
<toolitem action="%s"/>
|
<toolitem action="%s"/>
|
||||||
@@ -747,9 +748,9 @@ class GeoView(HtmlView):
|
|||||||
Required define_actions function for PageView. Builds the action
|
Required define_actions function for PageView. Builds the action
|
||||||
group information required.
|
group information required.
|
||||||
"""
|
"""
|
||||||
HtmlView._define_actions_fw_bw(self)
|
#HtmlView._define_actions_fw_bw(self)
|
||||||
self.forward_action.set_sensitive(False)
|
#self.forward_action.set_sensitive(False)
|
||||||
self.back_action.set_sensitive(False)
|
#self.back_action.set_sensitive(False)
|
||||||
self._add_action('OpenStreetMap', 'gramps-geo-mainmap',
|
self._add_action('OpenStreetMap', 'gramps-geo-mainmap',
|
||||||
_('_OpenStreetMap'),
|
_('_OpenStreetMap'),
|
||||||
callback=self._select_openstreetmap_map,
|
callback=self._select_openstreetmap_map,
|
||||||
|
Reference in New Issue
Block a user