diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2006-06-07 20:08:14 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2006-06-07 20:08:14 (GMT) |
commit | c4b112366ce91ddedbb3a7a1c6caa7543b0256c8 (patch) | |
tree | 4aab7c369cd5ee6bfcc36c6f6f5c2231402afff9 /sugar/__init__.py | |
parent | 09353c01545178166608e2ffbab8c31739d5f4d5 (diff) |
Force themes to be olpc, so people can get
Diffstat (limited to 'sugar/__init__.py')
-rw-r--r-- | sugar/__init__.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sugar/__init__.py b/sugar/__init__.py index e69de29..5ecc9df 100644 --- a/sugar/__init__.py +++ b/sugar/__init__.py @@ -0,0 +1,11 @@ +import pygtk +pygtk.require('2.0') +import gtk + +settings = gtk.settings_get_default() + +if settings.get_property('gtk-theme-name') != 'olpc': + settings.set_string_property('gtk-theme-name', 'olpc', '') + +if settings.get_property('gtk-icon-theme-name') != 'olpc': + settings.set_string_property('gtk-icon-theme-name', 'olpc', '') |