OSDN Git Service

toolbar: quick fix for exception
authorAndrew Chadwick <andrewc-git@piffle.org>
Fri, 5 Aug 2011 09:15:21 +0000 (10:15 +0100)
committerAndrew Chadwick <andrewc-git@piffle.org>
Fri, 5 Aug 2011 09:15:21 +0000 (10:15 +0100)
Should really test my commits before pushing. Ahem.

gui/drawwindow.py

index 39bbefb..ac8dc0c 100644 (file)
@@ -250,7 +250,7 @@ class Window (windowing.MainWindow, layout.MainWindow):
         self.toolbar = self.app.ui_manager.get_widget('/toolbar1')
         if not self.get_show_toolbar():
             gobject.idle_add(self.toolbar.hide)
-        tb.set_style(gtk.TOOLBAR_ICONS)
+        self.toolbar.set_style(gtk.TOOLBAR_ICONS)
 
     def _init_popupmenu(self, xml):
         """