2011-09-28 13:16:26 +00:00
|
|
|
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
2009-10-05 20:33:19 +00:00
|
|
|
|
|
|
|
const Clutter = imports.gi.Clutter;
|
|
|
|
const Lang = imports.lang;
|
|
|
|
const St = imports.gi.St;
|
|
|
|
|
|
|
|
const Calendar = imports.ui.calendar;
|
|
|
|
const UI = imports.testcommon.ui;
|
|
|
|
|
2012-06-24 19:11:41 +00:00
|
|
|
function test() {
|
|
|
|
let stage = new Clutter.Stage({ width: 400, height: 400 });
|
|
|
|
UI.init(stage);
|
2009-10-05 20:33:19 +00:00
|
|
|
|
2012-06-24 19:11:41 +00: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-10-05 20:33:19 +00:00
|
|
|
|
2012-06-24 19:11:41 +00:00
|
|
|
let entry = new St.Entry({ style: 'border: 1px solid black;' });
|
|
|
|
vbox.add(entry,
|
|
|
|
{ expand: true,
|
|
|
|
y_fill: false, y_align: St.Align.MIDDLE });
|
|
|
|
entry.grab_key_focus();
|
2009-10-05 20:33:19 +00:00
|
|
|
|
2012-06-24 19:11:41 +00:00
|
|
|
UI.main(stage);
|
|
|
|
}
|
|
|
|
test();
|