From db1e5d3e21cebee08f291cbacfdb10bca1294bbc Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Fri, 03 Apr 2009 15:05:01 +0000 Subject: Don't pick up the sugar theme #684 Use the native mozilla one instead --- 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) -- cgit v0.9.1