2009-09-18 19:51:15 +00:00
|
|
|
/* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */
|
|
|
|
|
|
|
|
const Clutter = imports.gi.Clutter;
|
|
|
|
const GLib = imports.gi.GLib;
|
|
|
|
const St = imports.gi.St;
|
2009-09-20 01:10:15 +00:00
|
|
|
const Shell = imports.gi.Shell;
|
2009-09-18 19:51:15 +00:00
|
|
|
|
|
|
|
const Environment = imports.ui.environment;
|
|
|
|
|
|
|
|
function init() {
|
|
|
|
Environment.init();
|
|
|
|
|
2009-09-20 01:10:15 +00:00
|
|
|
let stage = Clutter.Stage.get_default();
|
|
|
|
let context = St.ThemeContext.get_for_stage (stage);
|
2009-09-18 19:51:15 +00:00
|
|
|
let stylesheetPath = GLib.getenv("GNOME_SHELL_TESTSDIR") + "/testcommon/test.css";
|
2009-09-20 01:10:15 +00:00
|
|
|
let theme = new St.Theme ({ application_stylesheet: stylesheetPath });
|
|
|
|
context.set_theme (theme);
|
2009-09-18 19:51:15 +00:00
|
|
|
}
|