From 7dd80456aa89f97ad15261f7b86a4bce7bb086c5 Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Tue, 08 Sep 2009 21:59:14 +0000 Subject: Make the size of the toolbar scaling dependent Note: this should be handled by the toolkit widget --- 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() -- cgit v0.9.1