From 9bfe4a30df077adbb6f416505679471063ab285d Mon Sep 17 00:00:00 2001 From: flatberg Date: Mon, 9 Oct 2006 18:03:37 +0000 Subject: [PATCH] toolbar mode get and set --- system/fluents.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/system/fluents.py b/system/fluents.py index 2dff247..a84a591 100755 --- a/system/fluents.py +++ b/system/fluents.py @@ -28,6 +28,7 @@ class FluentApp: self.current_data = None self._last_view = None self._plot_toolbar = None + self._toolbar_state = None gtk.glade.set_custom_handler(self.custom_object_factory) self.widget_tree = gtk.glade.XML(GLADEFILENAME, 'appwindow') @@ -115,10 +116,15 @@ class FluentApp: window = self['plot_toolbar_dock'] if self._plot_toolbar: + toolbar_state = self._plot_toolbar.get_mode() window.remove(self._plot_toolbar) + else: + "Setting DEAULT in fluents" + toolbar_state = "DEFAULT" if view: self._plot_toolbar = view.get_toolbar() + self._plot_toolbar.set_mode(toolbar_state) else: self._plot_toolbar = None