[evolution/kill-bonobo] Remember position of main window.



commit 3184f3d532f7d1aabfcf49a0ba6fef9c6fcbdf5e
Author: Matthew Barnes <mbarnes redhat com>
Date:   Mon Aug 24 22:29:05 2009 -0400

    Remember position of main window.

 shell/apps_evolution_shell.schemas.in |   22 ++++++++++++++++++++++
 shell/e-shell-window-private.c        |    2 +-
 2 files changed, 23 insertions(+), 1 deletions(-)
---
diff --git a/shell/apps_evolution_shell.schemas.in b/shell/apps_evolution_shell.schemas.in
index c908de6..3f97072 100644
--- a/shell/apps_evolution_shell.schemas.in
+++ b/shell/apps_evolution_shell.schemas.in
@@ -99,6 +99,28 @@
     <!-- View defaults -->
 
     <schema>
+      <key>/schemas/apps/evolution/shell/view_defaults/window_y</key>
+      <applyto>/apps/evolution/shell/view_defaults/window_y</applyto>
+      <owner>evolution</owner>
+      <type>int</type>
+      <locale name="C">
+        <short>Default window Y coordinate</short>
+        <long>The default Y coordinate for the main window.</long>
+      </locale>
+    </schema>
+
+    <schema>
+      <key>/schemas/apps/evolution/shell/view_defaults/window_x</key>
+      <applyto>/apps/evolution/shell/view_defaults/window_x</applyto>
+      <owner>evolution</owner>
+      <type>int</type>
+      <locale name="C">
+        <short>Default window X coordinate</short>
+        <long>The default X coordinate for the main window.</long>
+      </locale>
+    </schema>
+
+    <schema>
       <key>/schemas/apps/evolution/shell/view_defaults/window_width</key>
       <applyto>/apps/evolution/shell/view_defaults/window_width</applyto>
       <owner>evolution</owner>
diff --git a/shell/e-shell-window-private.c b/shell/e-shell-window-private.c
index 1eb5eed..b011bb5 100644
--- a/shell/e-shell-window-private.c
+++ b/shell/e-shell-window-private.c
@@ -404,7 +404,7 @@ e_shell_window_private_constructed (EShellWindow *shell_window)
 
 	key = "/apps/evolution/shell/view_defaults/window";
 	gconf_bridge_bind_window (
-		bridge, key, GTK_WINDOW (shell_window), TRUE, FALSE);
+		bridge, key, GTK_WINDOW (shell_window), TRUE, TRUE);
 
 	object = G_OBJECT (shell_window);
 	key = "/apps/evolution/shell/view_defaults/component_id";



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