Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Edit
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2011-08-01 12:43:18 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2011-08-01 12:43:24 (GMT)
commita89a915761942812fa54dbe6e5a330c4d23a63c3 (patch)
tree1a2abc3f46ac8f933e2c1187460ea7f5e2bcf4ef /Edit
parent73829f7e63a548920d58ed78d5b3aabfdde81883 (diff)
Polish new toolbars related code; use only one bar for Mini since there is plenty of space; update TODO
Diffstat (limited to 'Edit')
-rw-r--r--Edit/MainWindow.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Edit/MainWindow.py b/Edit/MainWindow.py
index b029bfb..98852db 100644
--- a/Edit/MainWindow.py
+++ b/Edit/MainWindow.py
@@ -403,8 +403,6 @@ class MainWindow(gtk.EventBox):
generate_toolbar_button.show()
self.activity.toolbox.toolbar.insert(generate_toolbar_button, -1)
- self.activity.add_stop_button()
-
main_toolbar_button.set_expanded(True)
else:
self._mainToolbar = mainToolbar(self)
@@ -1499,8 +1497,10 @@ class MainWindow(gtk.EventBox):
def handleKeyboardShortcuts(self,event):
keyval = event.keyval
- if self.activity.activity_toolbar.title.is_focus():
- return
+ if not Config.HAVE_TOOLBOX:
+ # TODO process for Config.HAVE_TOOLBOX as well
+ if self.activity.activity_toolbar.title.is_focus():
+ return
# backspace and del keys
if keyval == gtk.keysyms.Delete or keyval == gtk.keysyms.BackSpace: