From f54decf07c8ac909d59a0aa76c00c9f818a21a57 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Tue, 23 Oct 2007 17:40:40 +0200 Subject: [PATCH] Add getter for the current toolbar in Toolbox. --- lib/sugar/graphics/toolbox.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/sugar/graphics/toolbox.py b/lib/sugar/graphics/toolbox.py index e4e831a0..4171d003 100644 --- a/lib/sugar/graphics/toolbox.py +++ b/lib/sugar/graphics/toolbox.py @@ -89,3 +89,9 @@ class Toolbox(gtk.VBox): def set_current_toolbar(self, index): self._notebook.set_current_page(index) + + def get_current_toolbar(self): + return self._notebook.get_current_page() + + current_toolbar = property(get_current_toolbar, set_current_toolbar) +