summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2014-09-18 19:22:02 -0700
committerJasper St. Pierre <jstpierre@mecheye.net>2014-10-14 18:54:00 -0700
commit642bf2b778281905e61db824731acdd59521e879 (patch)
treec12fc9c62c3fecc118ee62db8aa4ffa1ad4fe797 /tests
parent328bb1c21ba56b2b3c50e68c8834d5b75df63506 (diff)
downloadgnome-shell-642bf2b778281905e61db824731acdd59521e879.tar.gz
theme: convert stylesheet loading to GFile
In preparation to making it a GResource. https://bugzilla.gnome.org/show_bug.cgi?id=736936
Diffstat (limited to 'tests')
-rw-r--r--tests/testcommon/ui.js3
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);
}