From 66b1c48211ebf37a02921c883b25e83d97d80165 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Thu, 08 Mar 2007 10:47:39 +0000 Subject: Remove theme hack for tests. Marco has fixed the tests in sugar-emulator. --- (limited to 'tests') diff --git a/tests/data/stock-close.svg b/tests/data/stock-close.svg deleted file mode 100644 index 0354c63..0000000 --- a/tests/data/stock-close.svg +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - -]> - - - - - diff --git a/tests/test-button.py b/tests/test-button.py index e452811..0f3ded2 100755 --- a/tests/test-button.py +++ b/tests/test-button.py @@ -29,10 +29,6 @@ from sugar.graphics.entry import Entry def _button_activated_cb(button): print "_button_activated_cb" -import os -theme = gtk.icon_theme_get_default() -theme.prepend_search_path(os.path.join(os.path.dirname(__file__), 'data')) - window = gtk.Window() window.connect("destroy", lambda w: gtk.main_quit()) window.show() diff --git a/tests/test-entry.py b/tests/test-entry.py index d83c07d..80f0e23 100755 --- a/tests/test-entry.py +++ b/tests/test-entry.py @@ -30,10 +30,6 @@ def _entry_button_activated_cb(entry, action_id): print "_entry_button_activated_cb: " + str(action_id) entry.props.text = '' -import os -theme = gtk.icon_theme_get_default() -theme.prepend_search_path(os.path.join(os.path.dirname(__file__), 'data')) - window = gtk.Window() window.connect("destroy", lambda w: gtk.main_quit()) window.show() diff --git a/tests/test-label.py b/tests/test-label.py index 2a238a2..6e7b6b2 100755 --- a/tests/test-label.py +++ b/tests/test-label.py @@ -22,10 +22,6 @@ from sugar.graphics.toolbar import Toolbar from sugar.graphics.label import Label from sugar.graphics.iconbutton import IconButton -import os -theme = gtk.icon_theme_get_default() -theme.prepend_search_path(os.path.join(os.path.dirname(__file__), 'data')) - BUTTON_DELETE = 1 window = gtk.Window() diff --git a/tests/test-option-menu.py b/tests/test-option-menu.py index f320afc..7974839 100755 --- a/tests/test-option-menu.py +++ b/tests/test-option-menu.py @@ -30,10 +30,6 @@ from sugar.graphics.iconbutton import IconButton def _option_menu_changed_cb(option_menu): print '_option_menu_activated_cb: %i' % option_menu.props.value -import os -theme = gtk.icon_theme_get_default() -theme.prepend_search_path(os.path.join(os.path.dirname(__file__), 'data')) - window = gtk.Window() window.connect("destroy", lambda w: gtk.main_quit()) window.show() -- cgit v0.9.1