diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-05-22 16:25:29 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-05-22 16:25:29 (GMT) |
commit | ffebebcd7dd53c3a5e63b48bda3b2526c017a978 (patch) | |
tree | cc283c37925b44577e950fbc45bb4df1b3a2ac36 | |
parent | 87d59ae13b75b4b364aa1e3ae39b252cdc173188 (diff) |
Set icon size on the combobox.
-rw-r--r-- | sugar/graphics/combobox.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sugar/graphics/combobox.py b/sugar/graphics/combobox.py index ce8628a..284b1a1 100644 --- a/sugar/graphics/combobox.py +++ b/sugar/graphics/combobox.py @@ -19,6 +19,8 @@ import logging import gobject import gtk +from sugar.graphics import units + class ComboBox(gtk.ComboBox): __gtype_name__ = 'SugarComboBox' @@ -51,6 +53,7 @@ class ComboBox(gtk.ComboBox): def append_item(self, action_id, text, icon_name=None): if not self._icon_renderer and icon_name: self._icon_renderer = gtk.CellRendererPixbuf() + self._icon_renderer.props.stock_size = units.microgrid_to_pixels(3) self.pack_start(self._icon_renderer, False) self.add_attribute(self._icon_renderer, 'icon-name', 2) |