[gnome-shell] Use the GNOME 3 WM theme by default



commit 2fe7507689ec05aeac63c0d433fff16d8c5b3bb0
Author: William Jon McCann <jmccann redhat com>
Date:   Sun Oct 31 11:51:36 2010 -0400

    Use the GNOME 3 WM theme by default
    
    Set up an override to specify the metacity window decoration
    theme.  Use the GNOME 3 standard theme as the default.

 data/gnome-shell.schemas |   18 ++++++++++++++++++
 src/gnome-shell-plugin.c |    2 ++
 2 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/data/gnome-shell.schemas b/data/gnome-shell.schemas
index 5798a3e..1a88711 100644
--- a/data/gnome-shell.schemas
+++ b/data/gnome-shell.schemas
@@ -62,5 +62,23 @@
         </locale>
       </schema>
 
+      <schema>
+        <key>/schemas/desktop/gnome/shell/windows/theme</key>
+        <applyto>/desktop/gnome/shell/windows/theme</applyto>
+        <owner>gnome-shell</owner>
+        <type>string</type>
+        <default>Adwaita</default>
+        <locale name="C">
+          <short>Current theme</short>
+          <long>
+            The theme determines the appearance of window borders,
+            titlebar, and so forth.
+
+            This key overrides /apps/metacity/general/theme when
+            running GNOME Shell.
+          </long>
+        </locale>
+      </schema>
+
   </schemalist>
 </gconfschemafile>
diff --git a/src/gnome-shell-plugin.c b/src/gnome-shell-plugin.c
index f672778..0a3959d 100644
--- a/src/gnome-shell-plugin.c
+++ b/src/gnome-shell-plugin.c
@@ -161,6 +161,8 @@ gnome_shell_plugin_init (GnomeShellPlugin *shell_plugin)
                                            "/desktop/gnome/shell/windows/button_layout");
   meta_prefs_override_preference_location ("/apps/metacity/general/side_by_side_tiling",
                                            "/desktop/gnome/shell/windows/side_by_side_tiling");
+  meta_prefs_override_preference_location ("/apps/metacity/general/theme",
+                                           "/desktop/gnome/shell/windows/theme");
 }
 
 static void



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