2011-09-28 09:16:26 -04:00
|
|
|
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
2009-09-30 10:02:08 -04:00
|
|
|
|
2017-02-14 19:43:09 -05:00
|
|
|
const UI = imports.testcommon.ui;
|
|
|
|
|
2009-09-30 10:02:08 -04:00
|
|
|
const Clutter = imports.gi.Clutter;
|
|
|
|
const St = imports.gi.St;
|
|
|
|
|
2012-06-24 15:11:41 -04:00
|
|
|
function test() {
|
|
|
|
let stage = new Clutter.Stage({ width: 400, height: 400 });
|
|
|
|
UI.init(stage);
|
2009-09-30 10:02:08 -04:00
|
|
|
|
2012-06-24 15:11:41 -04:00
|
|
|
let vbox = new St.BoxLayout({ vertical: true,
|
|
|
|
width: stage.width,
|
|
|
|
height: stage.height,
|
|
|
|
style: 'padding: 10px; spacing: 10px; font: 15px sans-serif;' });
|
|
|
|
stage.add_actor(vbox);
|
2009-09-30 10:02:08 -04:00
|
|
|
|
2018-02-21 06:28:20 -05:00
|
|
|
// Calendar can only be imported after Environment.init()
|
|
|
|
const Calendar = imports.ui.calendar;
|
2012-06-24 15:11:41 -04:00
|
|
|
let calendar = new Calendar.Calendar();
|
|
|
|
vbox.add(calendar.actor,
|
|
|
|
{ expand: true,
|
|
|
|
x_fill: false, x_align: St.Align.MIDDLE,
|
|
|
|
y_fill: false, y_align: St.Align.START });
|
2018-02-21 08:03:18 -05:00
|
|
|
calendar.setEventSource(new Calendar.EmptyEventSource());
|
2009-09-30 10:02:08 -04:00
|
|
|
|
2012-06-24 15:11:41 -04:00
|
|
|
UI.main(stage);
|
|
|
|
}
|
|
|
|
test();
|