[Bugs] #684 UNSP: don't pick up the sugar theme - use the native mozilla one instead

SugarLabs Bugs bugtracker-noreply at sugarlabs.org
Fri Apr 3 11:04:33 EDT 2009


#684: don't pick up the sugar theme - use the native mozilla one instead
------------------------------------------+---------------------------------
    Reporter:  erikos                     |          Owner:  erikos  
        Type:  defect                     |         Status:  new     
    Priority:  Unspecified by Maintainer  |      Milestone:  0.84    
   Component:  Browse                     |        Version:  0.84.x  
    Severity:  Blocker                    |       Keywords:          
Distribution:  Unspecified                |   Status_field:  Assigned
------------------------------------------+---------------------------------
 {{{
 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)
 }}}

-- 
Ticket URL: <http://dev.sugarlabs.org/ticket/684>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list