Opened 15 years ago

Closed 15 years ago

Last modified 11 years ago

#684 closed defect (fixed)

don't pick up the sugar theme - use the native mozilla one instead

Reported by: erikos Owned by: erikos
Priority: Unspecified by Maintainer Milestone:
Component: Browse Version: 0.84.x
Severity: Blocker Keywords:
Cc: Distribution/OS: Unspecified
Bug Status: Assigned

Description

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)

Change History (2)

comment:1 Changed 15 years ago by erikos

  • Resolution set to fixed
  • Status changed from new to closed

comment:2 Changed 11 years ago by godiard

  • Milestone 0.84 deleted

Milestone 0.84 deleted

Note: See TracTickets for help on using tickets.