Fix (API changes)
This commit is contained in:
parent
845575c708
commit
a2de1f7f3f
@ -33,15 +33,15 @@ from sugar.graphics.canvasicon import CanvasIcon
|
||||
|
||||
def _create_snowflake(parent, children):
|
||||
color = XoColor()
|
||||
icon = CanvasIcon(size=40, xo_color=color,
|
||||
icon_name='activity-groupchat')
|
||||
icon = CanvasIcon(scale=0.5, xo_color=color,
|
||||
icon_name='theme:object-link')
|
||||
parent.append(icon, hippo.PACK_FIXED)
|
||||
parent.set_root(icon)
|
||||
|
||||
for i in range(0, children):
|
||||
color = XoColor()
|
||||
icon = CanvasIcon(size=60, xo_color=color,
|
||||
icon_name='stock-buddy')
|
||||
icon = CanvasIcon(scale=1.0, xo_color=color,
|
||||
icon_name='theme:stock-buddy')
|
||||
parent.append(icon, hippo.PACK_FIXED)
|
||||
|
||||
window = gtk.Window()
|
||||
|
Loading…
Reference in New Issue
Block a user