GeoView : crosshair synchronization between providers.
svn: r14779
This commit is contained in:
parent
b315989e11
commit
47ffa7b517
@ -696,7 +696,7 @@ class GeoView(HtmlView):
|
|||||||
return
|
return
|
||||||
if widget.get_active():
|
if widget.get_active():
|
||||||
self.last_year = widget
|
self.last_year = widget
|
||||||
self._set_markersonpage(widget)
|
self._set_markers_and_crosshair_on_page(widget)
|
||||||
|
|
||||||
def _ask_new_page(self, widget, data=None): # pylint: disable-msg=W0613
|
def _ask_new_page(self, widget, data=None): # pylint: disable-msg=W0613
|
||||||
"""
|
"""
|
||||||
@ -972,9 +972,9 @@ class GeoView(HtmlView):
|
|||||||
self._savezoomandposition()
|
self._savezoomandposition()
|
||||||
if self.displaytype != "places":
|
if self.displaytype != "places":
|
||||||
# Need to wait the page is loaded to set the markers.
|
# Need to wait the page is loaded to set the markers.
|
||||||
gobject.timeout_add(1500, self._set_markersonpage, self.last_year)
|
gobject.timeout_add(1500, self._set_markers_and_crosshair_on_page, self.last_year)
|
||||||
|
|
||||||
def _set_markersonpage(self, widget):
|
def _set_markers_and_crosshair_on_page(self, widget):
|
||||||
"""
|
"""
|
||||||
get the year to select then call javascript
|
get the year to select then call javascript
|
||||||
"""
|
"""
|
||||||
@ -993,6 +993,9 @@ class GeoView(HtmlView):
|
|||||||
elif year != "no":
|
elif year != "no":
|
||||||
self.last_selected_year = year
|
self.last_selected_year = year
|
||||||
self._call_js_selectmarkers(year)
|
self._call_js_selectmarkers(year)
|
||||||
|
self.renderer.execute_script("javascript:addcrosshair('%d','%s')" %
|
||||||
|
(self._config.get("preferences.crosshair"),
|
||||||
|
self.crosspath))
|
||||||
|
|
||||||
def _call_js_selectmarkers(self, year):
|
def _call_js_selectmarkers(self, year):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user