aboutsummaryrefslogtreecommitdiffstats
path: root/shell
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
parent15da8fa99012875735ffa3a1eb54670b6d42bea4 (diff)
downloadgsoc2013-evolution-f6f46ce7fc8950d10eb53e057117a146de5faddc.tar
gsoc2013-evolution-f6f46ce7fc8950d10eb53e057117a146de5faddc.tar.gz
gsoc2013-evolution-f6f46ce7fc8950d10eb53e057117a146de5faddc.tar.bz2
gsoc2013-evolution-f6f46ce7fc8950d10eb53e057117a146de5faddc.tar.lz
gsoc2013-evolution-f6f46ce7fc8950d10eb53e057117a146de5faddc.tar.xz
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')
-rw-r--r--shell/e-shell-window-private.c8
-rw-r--r--shell/e-shell-window-private.h1
2 files changed, 4 insertions, 5 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);
diff --git a/shell/e-shell-window-private.h b/shell/e-shell-window-private.h
index e3a0e50665..48226af216 100644
--- a/shell/e-shell-window-private.h
+++ b/shell/e-shell-window-private.h
@@ -35,7 +35,6 @@
#include <e-util/e-alert-dialog.h>
#include <e-util/e-alert-sink.h>
#include <e-util/e-plugin-ui.h>
-#include <e-util/gconf-bridge.h>
#include <widgets/misc/e-alert-bar.h>
#include <widgets/misc/e-import-assistant.h>
#include <widgets/misc/e-menu-tool-button.h>