aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-08-25 10:29:05 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-08-25 10:29:05 +0800
commit3184f3d532f7d1aabfcf49a0ba6fef9c6fcbdf5e (patch)
treee7e09f9dc5df3d5b81405fe32ac4cd336b9e4923 /shell
parentf2b2d42471dc6a820c94f8888bd4f13a5c00a530 (diff)
downloadgsoc2013-evolution-3184f3d532f7d1aabfcf49a0ba6fef9c6fcbdf5e.tar.gz
gsoc2013-evolution-3184f3d532f7d1aabfcf49a0ba6fef9c6fcbdf5e.tar.zst
gsoc2013-evolution-3184f3d532f7d1aabfcf49a0ba6fef9c6fcbdf5e.zip
Remember position of main window.
Diffstat (limited to 'shell')
-rw-r--r--shell/apps_evolution_shell.schemas.in22
-rw-r--r--shell/e-shell-window-private.c2
2 files changed, 23 insertions, 1 deletions
diff --git a/shell/apps_evolution_shell.schemas.in b/shell/apps_evolution_shell.schemas.in
index c908de65e5..3f97072583 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 1eb5eed460..b011bb548f 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";