Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2011-10-29 12:46:59 (GMT)
committer Simon Schampijer <simon@schampijer.de>2011-12-13 20:38:52 (GMT)
commit3962517a5826fa6c25caaafb0d67533d94105b35 (patch)
tree929a64826c3d1d54e2418d2ce04eb38637a1456a
parentb51d5c9dc7263917afa2535befb02ad7517a7514 (diff)
activity.py: Apply sugar GTK3 theme and icon theme
In GTK2, theme name and icon theme name properties could be set in the GTK2 RC file, at runtime, or by the X settings daemon. For GTK3, the RC file configuration route for these settings has been removed. As we do not currently have a settings daemon implementation, apply these important settings at runtime, early in the Activity class. Signed-off-by: Daniel Drake <dsd@laptop.org>
-rw-r--r--src/sugar3/activity/activity.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sugar3/activity/activity.py b/src/sugar3/activity/activity.py
index d6b9590..6e23b14 100644
--- a/src/sugar3/activity/activity.py
+++ b/src/sugar3/activity/activity.py
@@ -274,6 +274,8 @@ class Activity(Window, Gtk.Container):
# This code can be removed when we grow an xsettings daemon (the GTK+
# init routines will then automatically figure out the font settings)
settings = Gtk.Settings.get_default()
+ settings.set_property('gtk-theme-name', 'sugar')
+ settings.set_property('gtk-icon-theme-name', 'sugar')
settings.set_property('gtk-font-name',
'%s %f' % (style.FONT_FACE, style.FONT_SIZE))