From b1bfe1fe3ea68095e46413ff74518338e347202d Mon Sep 17 00:00:00 2001 From: einarr Date: Thu, 12 Oct 2006 17:38:41 +0000 Subject: [PATCH] Fixed selection issues that were probably introduced by the merge from the toolbar branch. --- system/fluents.py | 3 +-- system/project.py | 4 ++-- system/selections.py | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/system/fluents.py b/system/fluents.py index a84a591..51a0127 100755 --- a/system/fluents.py +++ b/system/fluents.py @@ -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() diff --git a/system/project.py b/system/project.py index 1b879d0..a5c0961 100644 --- a/system/project.py +++ b/system/project.py @@ -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) diff --git a/system/selections.py b/system/selections.py index 45be493..425e6a2 100644 --- a/system/selections.py +++ b/system/selections.py @@ -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():