~and471/slickpanel/trunk

« back to all changes in this revision

Viewing changes to panel/panel.vala

  • Committer: Andrew Higginson
  • Date: 2014-12-29 17:48:31 UTC
  • Revision ID: at.higginson@gmail.com-20141229174831-bukedaw8kny4aq8t
updating

Show diffs side-by-side

added added

removed removed

Lines of Context:
275
275
    /* Callbacks */
276
276
    private bool on_draw(Cairo.Context cairo_cx) {
277
277
        /* Clear Background */
278
 
        cairo_cx.set_source_rgba(1.0, 1.0, 1.0, 0.0);
279
 
        cairo_cx.set_operator(Cairo.Operator.SOURCE);
280
 
        cairo_cx.paint();
 
278
        //cairo_cx.set_source_rgba(1.0, 1.0, 1.0, 0.0);
 
279
        //cairo_cx.set_operator(Cairo.Operator.SOURCE);
 
280
        //cairo_cx.paint();
281
281
        cairo_cx.set_operator(Cairo.Operator.OVER);
282
282
        
283
283
        var style_cx = this.get_style_context();
289
289
            case Settings.BackgroundType.COLOR:
290
290
                cairo_cx.rectangle(0, 0, this.width, this.height);
291
291
                Gdk.cairo_set_source_rgba(cairo_cx, this.background_color);
292
 
                cairo_cx.fill();
 
292
                //cairo_cx.fill();
293
293
                break;
294
294
            case Settings.BackgroundType.IMAGE:
295
295
                var surface = new Cairo.ImageSurface.from_png(this.background_path);
309
309
    
310
310
        cairo_cx.rectangle(0, 0, this.width, this.height);
311
311
        Gdk.cairo_set_source_rgba(cairo_cx, color);
312
 
        cairo_cx.fill();
 
312
        //cairo_cx.fill();
313
313
        
314
314
        return false;
315
315
    }
359
359
            return;
360
360
        }
361
361
        
 
362
        stdout.printf("%d\n", this.height);
 
363
        
362
364
        this.resize(this.width, this.height);
363
365
        this.move(this.x, this.y);
364
366
    }