From cbcedfac523a0b416f422139a7bb60e16930c634 Mon Sep 17 00:00:00 2001 From: Aleksey Lim Date: Mon, 01 Aug 2011 00:27:49 +0000 Subject: Move HAVE_TOOLABAR definition to Config.py --- (limited to 'Jam') diff --git a/Jam/JamMain.py b/Jam/JamMain.py index 053fda3..3b6bec4 100644 --- a/Jam/JamMain.py +++ b/Jam/JamMain.py @@ -245,7 +245,7 @@ class JamMain(gtk.EventBox): self.prepareKeyImage(key) #-- Toolbars ------------------------------------------ - if self.activity.have_toolbox: + if Config.HAVE_TOOLBOX: from sugar.graphics.toolbarbox import ToolbarButton self.jamToolbar = JamToolbar(self) @@ -452,7 +452,7 @@ class JamMain(gtk.EventBox): #-- Final Set Up -------------------------------------- self.setVolume(self.volume) self.setTempo(self.tempo) - if not self.activity.have_toolbox: + if not Config.HAVE_TOOLBOX: self.activity.toolbox.set_current_toolbar(1) # JamToolbar self.setDesktop(0, True) @@ -750,7 +750,7 @@ class JamMain(gtk.EventBox): self._setMuted(False) def setMuted(self, muted): - if self.activity.have_toolbox: + if Config.HAVE_TOOLBOX: toolbar = self.activity.toolbox.toolbar else: toolbar = self.playbackToolbar -- cgit v0.9.1