aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-window-private.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-11-28 02:40:01 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-11-28 08:03:45 +0800
commitf6f46ce7fc8950d10eb53e057117a146de5faddc (patch)
tree1399d1436a3991b979f3b0773e2cdcec41840383 /shell/e-shell-window-private.c
parent15da8fa99012875735ffa3a1eb54670b6d42bea4 (diff)
downloadgsoc2013-evolution-f6f46ce7fc8950d10eb53e057117a146de5faddc.tar.gz
gsoc2013-evolution-f6f46ce7fc8950d10eb53e057117a146de5faddc.tar.zst
gsoc2013-evolution-f6f46ce7fc8950d10eb53e057117a146de5faddc.zip
Use e_restore_window() and "org.gnome.evolution.window".
Apply it to all windows with persistent size and/or position.
Diffstat (limited to 'shell/e-shell-window-private.c')
-rw-r--r--shell/e-shell-window-private.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/e-shell-window-private.c b/shell/e-shell-window-private.c
index cfee37ddbf..6518324ed1 100644
--- a/shell/e-shell-window-private.c
+++ b/shell/e-shell-window-private.c
@@ -261,7 +261,6 @@ e_shell_window_private_constructed (EShellWindow *shell_window)
GtkWindow *window;
GObject *object;
guint merge_id;
- const gchar *key;
const gchar *id;
#ifndef G_OS_WIN32
@@ -444,9 +443,10 @@ e_shell_window_private_constructed (EShellWindow *shell_window)
g_free (priv->geometry);
priv->geometry = NULL;
} else {
- /* FIXME: how to bind this */
- key = "/apps/evolution/shell/view_defaults/window";
- gconf_bridge_bind_window (gconf_bridge_get (), key, window, TRUE, TRUE);
+ gtk_window_set_default_size (window, 640, 480);
+ e_restore_window (
+ window, "/org/gnome/evolution/shell/window/",
+ E_RESTORE_WINDOW_SIZE | E_RESTORE_WINDOW_POSITION);
}
shell_window_init_switcher_style (shell_window);