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>
This commit is contained in:
Manuel Quiñones 2013-01-16 16:24:53 -03:00
parent e36513f925
commit 5fd2dd8a98

View File

@ -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)