Adapt gtk icon size to the grid

This commit is contained in:
Marco Pesenti Gritti 2006-10-11 19:58:57 +02:00
parent 3f68640c13
commit 0ec5283081
2 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,13 @@
import gtk
from sugar.graphics.grid import Grid
settings = gtk.settings_get_default()
grid = Grid()
sizes = 'gtk-large-toolbar=%d, %d' % (grid.dimension(1), grid.dimension(1))
settings.set_string_property('gtk-icon-sizes', sizes, '')
def get_default_type(activity_type):
"""Get the activity default type.

View File

@ -8,11 +8,6 @@ session = UITestSession()
session.start()
import gtk
import goocanvas
from sugar.graphics import IconColor
from sugar.graphics.IconItem import IconItem
from sugar.graphics.CanvasView import CanvasView
# Main window
window = gtk.Window()