~mmcg069/software-center/image-data-cleanup

« back to all changes in this revision

Viewing changes to softwarecenter/ui/gtk3/widgets/symbolic_icons.py

  • Committer: Matthew McGowan
  • Date: 2011-09-02 23:25:29 UTC
  • mfrom: (2131.1.110 trunk)
  • Revision ID: matthew.joseph.mcgowan@gmail.com-20110902232529-hfj2b2mkxxkiwdqh
merge w trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
        # dropshadow
75
75
        x = (a.width - drop_shadow.get_width()) * 0.5 + ds_xo + xo
76
76
        y = (a.height - drop_shadow.get_height()) * 0.5 + ds_yo + yo
77
 
        cr.set_source_surface(drop_shadow, x, y)
78
 
        cr.paint_with_alpha(0.55)
 
77
        cr.set_source_surface(drop_shadow, int(x), int(y))
 
78
        cr.paint_with_alpha(0.4)
79
79
 
80
80
        # colorised icon
81
81
        state = widget.get_state_flags()
84
84
        Gdk.cairo_set_source_rgba(cr, color)
85
85
        x = (a.width - icon.get_width()) * 0.5 + xo
86
86
        y = (a.height - icon.get_height()) * 0.5 + yo
87
 
        cr.mask_surface(icon, x, y)
 
87
        cr.mask_surface(icon, int(x), int(y))
88
88
        return
89
89
 
90
90