diff options
author | Manuel Quiñones <manuq@laptop.org> | 2013-01-16 19:24:53 (GMT) |
---|---|---|
committer | Manuel Quiñones <manuq@laptop.org> | 2013-01-16 19:24:53 (GMT) |
commit | 5fd2dd8a98f3d0bf9736dea82228b0c093004bc0 (patch) | |
tree | ea590fcd468001bd0808d55d1845e5f089e1cb75 | |
parent | e36513f925ac9845de9be0bd98353aa4207c90b3 (diff) |
Testsuite: set theme before running the test
Otherwise tests can't load icons before running because the icon theme
is not set.
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
-rw-r--r-- | tests/graphics/common.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/graphics/common.py b/tests/graphics/common.py index 02c3e19..8d516ad 100644 --- a/tests/graphics/common.py +++ b/tests/graphics/common.py @@ -31,7 +31,7 @@ def set_theme(): sugar_theme = 'sugar-100' settings.set_property('gtk-theme-name', sugar_theme) settings.set_property('gtk-icon-theme-name', 'sugar') - +set_theme() class Test(Gtk.VBox): def __init__(self): @@ -57,7 +57,6 @@ class TestPalette(Test): class TestRunner(object): def run(self, test): - set_theme() window = Gtk.Window() window.connect('destroy', lambda w: Gtk.main_quit()) window.add(test) |