[gnome-shell/shell-toolkit: 5/32] Load gnome-shell.css at startup



commit b8d46422d59d7a43b96771aa3651b3fd8999135d
Author: Colin Walters <walters verbum org>
Date:   Thu Sep 10 01:36:41 2009 -0400

    Load gnome-shell.css at startup
    
    https://bugzilla.gnome.org/show_bug.cgi?id=591245

 js/ui/main.js        |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/data/gnome-shell.css b/data/gnome-shell.css
new file mode 100644
index 0000000..e69de29
diff --git a/js/ui/main.js b/js/ui/main.js
index f48d38b..140062b 100644
--- a/js/ui/main.js
+++ b/js/ui/main.js
@@ -10,6 +10,7 @@ const Mainloop = imports.mainloop;
 const Meta = imports.gi.Meta;
 const Shell = imports.gi.Shell;
 const Signals = imports.signals;
+const St = imports.gi.St;
 
 const Chrome = imports.ui.chrome;
 const Overview = imports.ui.overview;
@@ -75,6 +76,10 @@ function start() {
     for (let i = 0; i < children.length; i++)
         children[i].destroy();
 
+    let style = St.Style.get_default();
+    let stylesheetPath = global.datadir + "/gnome-shell.css";
+    style.load_from_file(stylesheetPath);
+
     global.connect('panel-run-dialog', function(panel) {
         // Make sure not more than one run dialog is shown.
         getRunDialog().open();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]