Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

Fixed selection issues that were probably introduced by the merge from the

toolbar branch.
This commit is contained in:
Einar Ryeng 2006-10-12 17:38:41 +00:00
parent d9fd4fc127
commit b1bfe1fe3e
3 changed files with 4 additions and 5 deletions

View File

@ -119,8 +119,7 @@ class FluentApp:
toolbar_state = self._plot_toolbar.get_mode()
window.remove(self._plot_toolbar)
else:
"Setting DEAULT in fluents"
toolbar_state = "DEFAULT"
toolbar_state = "default"
if view:
self._plot_toolbar = view.get_toolbar()

View File

@ -25,12 +25,12 @@ class Project:
def add_selection_observer(self, observer):
self._selection_observers.append(observer)
observer.selection_changed(self.get_selection())
observer.selection_changed(None, self.get_selection())
def notify_selection_listeners(self, dim_name):
"""Notifies observers"""
for observer in self._selection_observers:
observer.selection_changed(self.get_selection())
observer.selection_changed(dim_name, self.get_selection())
def add_dataset_observer(self, observer):
self._dataset_observers.append(observer)

View File

@ -139,7 +139,7 @@ class DimListController:
values = (selection.title, selection, dataset.get_dim_name(0))
self.selstore.insert_after(i, None, values)
def selection_changed(self, selection):
def selection_changed(self, dim_name, selection):
"""Callback function from Project."""
for dim in selection.dims():