From 3e265b4bc6fed29e4b0263f9c8fd3cd1cd7742b0 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 10 Sep 2009 01:36:41 -0400 Subject: [PATCH] Load gnome-shell.css at startup https://bugzilla.gnome.org/show_bug.cgi?id=591245 --- data/gnome-shell.css | 0 js/ui/main.js | 5 +++++ 2 files changed, 5 insertions(+) create mode 100644 data/gnome-shell.css diff --git a/data/gnome-shell.css b/data/gnome-shell.css new file mode 100644 index 000000000..e69de29bb diff --git a/js/ui/main.js b/js/ui/main.js index 5251ce8d0..837e5fffb 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -7,6 +7,7 @@ const GLib = imports.gi.GLib; const Lang = imports.lang; const Mainloop = imports.mainloop; const Meta = imports.gi.Meta; +const Nbtk = imports.gi.Nbtk; const Shell = imports.gi.Shell; const Signals = imports.signals; @@ -66,6 +67,10 @@ function start() { for (let i = 0; i < children.length; i++) children[i].destroy(); + let style = Nbtk.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();