get_icon_name() now takes step kwarg for #7248.1

This commit is contained in:
Martin Dengler 2008-06-23 12:58:46 +01:00
parent dcd212f168
commit 1403f7d26d

View File

@ -580,8 +580,8 @@ class CanvasIcon(hippo.CanvasBox, hippo.CanvasItem):
palette = property(get_palette, set_palette) palette = property(get_palette, set_palette)
def get_icon_state(base_name, perc): def get_icon_state(base_name, perc, step=5):
step = 5 assert step > 0, 'get_icon_state(): step must be positive\n'
strength = round(perc / step) * step strength = round(perc / step) * step
icon_theme = gtk.icon_theme_get_default() icon_theme = gtk.icon_theme_get_default()