Split the gtkrc in sugar and sugar-xo. Make them load the

respective gtk theme.
This commit is contained in:
Marco Pesenti Gritti 2007-04-19 21:13:55 +02:00
parent 23bf7d94c6
commit 2f858c02a3
3 changed files with 9 additions and 5 deletions

View File

@ -1,6 +1,7 @@
sugardir = $(pkgdatadir)/data sugardir = $(pkgdatadir)/data
sugar_DATA = \ sugar_DATA = \
gtkrc \ sugar.gtkrc \
sugar-xo.gtkrc \
gecko-prefs.js \ gecko-prefs.js \
mime.types mime.types

View File

@ -1,7 +1,5 @@
gtk-theme-name = "sugar" gtk-theme-name = "sugar"
gtk-icon-theme-name = "sugar" gtk-icon-theme-name = "sugar"
gtk-font-name = "Bitstream Vera Sans 7" gtk-font-name = "Sans Serif 11"
gtk-icon-sizes = "gtk-menu=32,32:gtk-button=32,32"
gtk-cursor-theme-name = "sugar" gtk-cursor-theme-name = "sugar"
gtk-cursor-theme-size = 48
gtk-toolbar-style = GTK_TOOLBAR_ICONS gtk-toolbar-style = GTK_TOOLBAR_ICONS

View File

@ -87,7 +87,12 @@ _start_xephyr()
from sugar import env 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: if len(sys.argv) == 1:
program = 'sugar-shell' program = 'sugar-shell'