~victored/concerto/trunk

« back to all changes in this revision

Viewing changes to src/widgets/image-view/image-view-cell-renderer.vala

  • Committer: Victor Martinez
  • Date: 2013-06-21 19:39:51 UTC
  • Revision ID: victoreduardm@gmail.com-20130621193951-tk8h47yrqeg42p40
correct indentation

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
        if (shadow_buffer == null || image_width != last_image_width || image_height != last_image_height) {
118
118
            shadow_buffer = new Granite.Drawing.BufferSurface (image_width, image_height);
119
119
 
120
 
                    var context = shadow_buffer.context;
121
 
                    context.rectangle (offset, offset, pixbuf.width, pixbuf.height);
122
 
                    context.set_source_rgba (0, 0, 0, IMAGE_SHADOW_ALPHA);
123
 
                    context.fill ();
124
 
                    shadow_buffer.exponential_blur (IMAGE_SHADOW_RADIUS);
 
120
            var context = shadow_buffer.context;
 
121
            context.rectangle (offset, offset, pixbuf.width, pixbuf.height);
 
122
            context.set_source_rgba (0, 0, 0, IMAGE_SHADOW_ALPHA);
 
123
            context.fill ();
 
124
            shadow_buffer.exponential_blur (IMAGE_SHADOW_RADIUS);
125
125
 
126
126
            last_image_width = image_width;
127
127
            last_image_height = image_height;
129
129
 
130
130
        x += (width - image_width) / 2;
131
131
 
132
 
                cr.set_source_surface (shadow_buffer.surface, x, y);
 
132
        cr.set_source_surface (shadow_buffer.surface, x, y);
133
133
        cr.paint ();
134
134
 
135
135
        ctx.render_icon (cr, pixbuf, x + offset, y + offset);