theme: don't parse the default stylesheet twice

If we don't have a custom theme, set the stylesheet as the
default only, so we don't parse it twice.
This commit is contained in:
Giovanni Campagna 2013-05-25 14:59:09 +02:00
parent c1518dc728
commit f78e17ce02

View File

@ -260,11 +260,7 @@ function loadTheme() {
let themeContext = St.ThemeContext.get_for_stage (global.stage);
let previousTheme = themeContext.get_theme();
let cssStylesheet = _defaultCssStylesheet;
if (_cssStylesheet != null)
cssStylesheet = _cssStylesheet;
let theme = new St.Theme ({ application_stylesheet: cssStylesheet,
let theme = new St.Theme ({ application_stylesheet: _cssStylesheet,
default_stylesheet: _defaultCssStylesheet });
if (previousTheme) {