diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testcommon/ui.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testcommon/ui.js b/tests/testcommon/ui.js index 4813d76d6..b66b0cdca 100644 --- a/tests/testcommon/ui.js +++ b/tests/testcommon/ui.js @@ -1,6 +1,7 @@ // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- const Clutter = imports.gi.Clutter; +const Gio = imports.gi.Gio; const GLib = imports.gi.GLib; const St = imports.gi.St; @@ -10,7 +11,7 @@ function init(stage) { Environment.init(); 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 }); + let theme = new St.Theme({ application_stylesheet: Gio.File.new_for_path(stylesheetPath) }); context.set_theme(theme); } |