[gnome-shell] Enable side-by-side tiling



commit a2553f48e21fc56ddbe989c17ba94baa3ef19fc9
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Jul 1 22:58:25 2010 +0200

    Enable side-by-side tiling
    
    Override the metacity schema for side-by-side tiling to change the
    default behavior when running mutter in GNOME Shell.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=606260

 data/gnome-shell.schemas |   19 +++++++++++++++++++
 src/gnome-shell-plugin.c |    2 ++
 2 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/data/gnome-shell.schemas b/data/gnome-shell.schemas
index d6a7dbf..5798a3e 100644
--- a/data/gnome-shell.schemas
+++ b/data/gnome-shell.schemas
@@ -43,5 +43,24 @@
         </locale>
       </schema>
 
+      <schema>
+        <key>/schemas/desktop/gnome/shell/windows/side_by_side_tiling</key>
+        <applyto>/desktop/gnome/shell/windows/side_by_side_tiling</applyto>
+        <owner>gnome-shell</owner>
+        <type>bool</type>
+        <default>true</default>
+        <locale name="C">
+          <short>enable side-by-side tiling when dropping windows on screen edges</short>
+          <long>
+             If enabled, dropping windows on screen edges maximizes them
+             vertically and resizes them horizontally to cover half of the
+             available area.
+
+             This key overrides /apps/metacity/general/side_by_side_tiling when
+             running GNOME Shell.
+          </long>
+        </locale>
+      </schema>
+
   </schemalist>
 </gconfschemafile>
diff --git a/src/gnome-shell-plugin.c b/src/gnome-shell-plugin.c
index 3b78bd8..227644f 100644
--- a/src/gnome-shell-plugin.c
+++ b/src/gnome-shell-plugin.c
@@ -158,6 +158,8 @@ gnome_shell_plugin_init (GnomeShellPlugin *shell_plugin)
                                            "/desktop/gnome/shell/windows/attach_modal_dialogs");
   meta_prefs_override_preference_location ("/apps/metacity/general/button_layout",
                                            "/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");
 }
 
 static void



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