main: Use the schema for the current mode to override 'button-layout'

https://bugzilla.gnome.org/show_bug.cgi?id=689234
This commit is contained in:
Debarshi Ray 2012-11-28 19:20:02 +01:00
parent 6cbdb6beae
commit 8b5d07c1a5
2 changed files with 2 additions and 2 deletions

View File

@ -109,6 +109,8 @@ function start() {
Gio.DesktopAppInfo.set_desktop_env('GNOME');
sessionMode = new SessionMode.SessionMode();
Meta.prefs_override_preference_schema(sessionMode.buttonLayout[0], sessionMode.buttonLayout[1]);
shellDBusService = new ShellDBus.GnomeShell();
shellMountOpDBusService = new ShellMountOperation.GnomeShellMountOpHandler();

View File

@ -174,8 +174,6 @@ shell_prefs_init (void)
OVERRIDES_SCHEMA);
meta_prefs_override_preference_schema ("workspaces-only-on-primary",
OVERRIDES_SCHEMA);
meta_prefs_override_preference_schema ("button-layout",
OVERRIDES_SCHEMA);
meta_prefs_override_preference_schema ("edge-tiling",
OVERRIDES_SCHEMA);
meta_prefs_override_preference_schema ("focus-change-on-pointer-rest",