1
/* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */
3
const Clutter = imports.gi.Clutter;
4
const Lang = imports.lang;
5
const St = imports.gi.St;
7
const Calendar = imports.ui.calendar;
8
const UI = imports.testcommon.ui;
11
let stage = Clutter.Stage.get_default();
12
stage.width = stage.height = 400;
15
let vbox = new St.BoxLayout({ vertical: true,
18
style: 'padding: 10px; spacing: 10px; font: 15px sans-serif;' });
19
stage.add_actor(vbox);
21
let calendar = new Calendar.Calendar();
22
vbox.add(calendar.actor,
24
x_fill: false, x_align: St.Align.MIDDLE,
25
y_fill: false, y_align: St.Align.START });