diff options
author | Simon Schampijer <simon@schampijer.de> | 2009-04-03 15:05:01 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2009-04-03 15:05:01 (GMT) |
commit | db1e5d3e21cebee08f291cbacfdb10bca1294bbc (patch) | |
tree | 4d79f4f172ca407143eee02df2e715d8b96c74c7 | |
parent | ba2307c8437ca8e0c77fffed06009158ad3d48f2 (diff) |
Don't pick up the sugar theme #684
Use the native mozilla one instead
-rw-r--r-- | webactivity.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/webactivity.py b/webactivity.py index 5b1be7d..a0ee38f 100644 --- a/webactivity.py +++ b/webactivity.py @@ -182,6 +182,12 @@ class WebActivity(activity.Activity): _set_accept_languages() _seed_xs_cookie() + + # don't pick up the sugar theme - use the native mozilla one instead + cls = components.classes['@mozilla.org/preferences-service;1'] + pref_service = cls.getService(components.interfaces.nsIPrefService) + branch = pref_service.getBranch("mozilla.widget.") + branch.setBoolPref("disable-native-theme", True) toolbox = activity.ActivityToolbox(self) |