Adapt gtk icon size to the grid
This commit is contained in:
parent
3f68640c13
commit
0ec5283081
@ -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.
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user