Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/theme.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-07-12 12:02:29 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-07-12 12:02:29 (GMT)
commitbe806eb1918f7db90e661b5fcb4e260a0b1ba669 (patch)
tree09ca8d2341d5875c1623801516a5f32bf1626063 /sugar/theme.py
parentca2b08f8b6fb1bc54a4e4f9cfc457f57cf958c7f (diff)
More cleanups and some fixes
Diffstat (limited to 'sugar/theme.py')
-rw-r--r--sugar/theme.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/sugar/theme.py b/sugar/theme.py
new file mode 100644
index 0000000..628d188
--- /dev/null
+++ b/sugar/theme.py
@@ -0,0 +1,10 @@
+import gtk
+
+def setup():
+ 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', '')