diff options
author | Simon Schampijer <simon@schampijer.de> | 2009-09-08 21:59:14 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2009-09-08 21:59:14 (GMT) |
commit | 7dd80456aa89f97ad15261f7b86a4bce7bb086c5 (patch) | |
tree | cdb58b422049e6053de25500bb9e5c727aa748b7 /toolbar.py | |
parent | 71839353ecbf4405a937a9ec16ac9e1ab7091cc0 (diff) |
Make the size of the toolbar scaling dependent
Note: this should be handled by the toolkit widget
Diffstat (limited to 'toolbar.py')
-rw-r--r-- | toolbar.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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() |