tests: Don't use the default stage
https://bugzilla.gnome.org/show_bug.cgi?id=678737
This commit is contained in:
@@ -3,16 +3,13 @@
|
||||
const Clutter = imports.gi.Clutter;
|
||||
const GLib = imports.gi.GLib;
|
||||
const St = imports.gi.St;
|
||||
const Shell = imports.gi.Shell;
|
||||
|
||||
const Environment = imports.ui.environment;
|
||||
|
||||
function init() {
|
||||
function init(stage) {
|
||||
Environment.init();
|
||||
|
||||
let stage = Clutter.Stage.get_default();
|
||||
let context = St.ThemeContext.get_for_stage (stage);
|
||||
let context = St.ThemeContext.get_for_stage(stage);
|
||||
let stylesheetPath = GLib.getenv("GNOME_SHELL_TESTSDIR") + "/testcommon/test.css";
|
||||
let theme = new St.Theme ({ application_stylesheet: stylesheetPath });
|
||||
context.set_theme (theme);
|
||||
let theme = new St.Theme({ application_stylesheet: stylesheetPath });
|
||||
context.set_theme(theme);
|
||||
}
|
||||
|
Reference in New Issue
Block a user