Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2009-09-08 21:59:14 (GMT)
committer Simon Schampijer <simon@schampijer.de>2009-09-08 21:59:14 (GMT)
commit7dd80456aa89f97ad15261f7b86a4bce7bb086c5 (patch)
treecdb58b422049e6053de25500bb9e5c727aa748b7
parent71839353ecbf4405a937a9ec16ac9e1ab7091cc0 (diff)
Make the size of the toolbar scaling dependentHEADmaster
Note: this should be handled by the toolkit widget
-rw-r--r--toolbar.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/toolbar.py b/toolbar.py
index 30332d0..75243c7 100644
--- a/toolbar.py
+++ b/toolbar.py
@@ -25,6 +25,7 @@ import gtk
from sugar.graphics.toolbutton import ToolButton
from sugar.graphics.toolcombobox import ToolComboBox
from sugar.graphics import iconentry
+from sugar.graphics import style
from sugar.activity.widgets import CopyButton
from sugar.activity.widgets import PasteButton
from sugar.activity.widgets import UndoButton
@@ -383,7 +384,7 @@ class TextToolbar(gtk.Toolbar):
self.insert(font_size, -1)
# MAGIC NUMBER WARNING: Secondary toolbars are not a standard height?
- self.set_size_request(-1, 75)
+ self.set_size_request(-1, style.GRID_CELL_SIZE)
self.show_all()