Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar-emulator
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2007-04-19 19:13:55 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-04-19 19:13:55 (GMT)
commit2f858c02a3f613af043929da96fc1ba59d7a9eae (patch)
treef09041ccce7d53aa254de949b6d0ee3941d8dafc /sugar-emulator
parent23bf7d94c656804cc987a3f06d7ddd184048c6f1 (diff)
Split the gtkrc in sugar and sugar-xo. Make them load the
respective gtk theme.
Diffstat (limited to 'sugar-emulator')
-rwxr-xr-xsugar-emulator7
1 files changed, 6 insertions, 1 deletions
diff --git a/sugar-emulator b/sugar-emulator
index c1fb6a3..2d6b04f 100755
--- a/sugar-emulator
+++ b/sugar-emulator
@@ -87,7 +87,12 @@ _start_xephyr()
from sugar import env
-os.environ['GTK2_RC_FILES'] = env.get_data_path('gtkrc')
+if env.is_emulator():
+ gtkrc_filename = 'sugar.gtkrc'
+else:
+ gtkrc_filename = 'sugar-xo.gtkrc'
+
+os.environ['GTK2_RC_FILES'] = env.get_data_path(gtkrc_filename)
if len(sys.argv) == 1:
program = 'sugar-shell'