[metacity/wip/gtk-theme: 50/52] prefs: add theme preference



commit 58937464b04999517f8831e5608374078e7059fc
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Thu Jan 1 22:23:09 2015 +0200

    prefs: add theme preference
    
    Since mutter now use only GTK+ theme I expect that theme preference
    will be remove from org.gnome.desktop.wm.preferences.
    
    To use metacity theme 'use-metacity-theme' must be enabled and
    'theme' should be set to valid theme.

 src/core/prefs.c                      |    2 +-
 src/org.gnome.metacity.gschema.xml.in |    8 ++++++++
 2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/core/prefs.c b/src/core/prefs.c
index f7b4fb3..0a556cb 100644
--- a/src/core/prefs.c
+++ b/src/core/prefs.c
@@ -388,7 +388,7 @@ static MetaStringPreference preferences_string[] =
     },
     {
       { "theme",
-        SCHEMA_GENERAL,
+        SCHEMA_METACITY,
         META_PREF_THEME,
       },
       theme_name_handler,
diff --git a/src/org.gnome.metacity.gschema.xml.in b/src/org.gnome.metacity.gschema.xml.in
index 4102740..248c06e 100644
--- a/src/org.gnome.metacity.gschema.xml.in
+++ b/src/org.gnome.metacity.gschema.xml.in
@@ -62,6 +62,14 @@
         will load old themes.
       </_description>
     </key>
+    <key name="theme" type="s">
+      <default>'Adwaita'</default>
+      <_summary>Current theme</_summary>
+      <_description>
+        The theme determines the appearance of window borders, titlebar,
+        and so forth. Only used if 'use-metacity-theme' is enabled.
+      </_description>
+    </key>
   </schema>
 
 </schemalist>


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