aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-window-private.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-04-14 18:40:59 +0800
committerMilan Crha <mcrha@redhat.com>2010-04-14 18:40:59 +0800
commitef31f5027f8ca03b6cc611aa75cc6437b7fec4b4 (patch)
tree68178547830491b43b95ff1d1172fcac25068083 /shell/e-shell-window-private.c
parent4502a5afc2447e4a500b593a825ea13ba2afb2f2 (diff)
downloadgsoc2013-evolution-ef31f5027f8ca03b6cc611aa75cc6437b7fec4b4.tar
gsoc2013-evolution-ef31f5027f8ca03b6cc611aa75cc6437b7fec4b4.tar.gz
gsoc2013-evolution-ef31f5027f8ca03b6cc611aa75cc6437b7fec4b4.tar.bz2
gsoc2013-evolution-ef31f5027f8ca03b6cc611aa75cc6437b7fec4b4.tar.lz
gsoc2013-evolution-ef31f5027f8ca03b6cc611aa75cc6437b7fec4b4.tar.xz
gsoc2013-evolution-ef31f5027f8ca03b6cc611aa75cc6437b7fec4b4.tar.zst
gsoc2013-evolution-ef31f5027f8ca03b6cc611aa75cc6437b7fec4b4.zip
Bug #608203 - Left pane of mailer window is really narrow at startup
Diffstat (limited to 'shell/e-shell-window-private.c')
-rw-r--r--shell/e-shell-window-private.c34
1 files changed, 18 insertions, 16 deletions
diff --git a/shell/e-shell-window-private.c b/shell/e-shell-window-private.c
index faccac8052..2272faca9e 100644
--- a/shell/e-shell-window-private.c
+++ b/shell/e-shell-window-private.c
@@ -413,6 +413,24 @@ e_shell_window_private_constructed (EShellWindow *shell_window)
bridge = gconf_bridge_get ();
+ /* First restore window size, then the rest */
+
+ /* Configure the initial size and position of the window by way
+ * of either a user-supplied geometry string or the last recorded
+ * values. Note that if a geometry string is applied, the window
+ * size and position are -not- recorded. */
+ if (priv->geometry != NULL) {
+ if (!gtk_window_parse_geometry (window, priv->geometry))
+ g_printerr (
+ "Failed to parse geometry '%s'\n",
+ priv->geometry);
+ g_free (priv->geometry);
+ priv->geometry = NULL;
+ } else {
+ key = "/apps/evolution/shell/view_defaults/window";
+ gconf_bridge_bind_window (bridge, key, window, TRUE, TRUE);
+ }
+
object = G_OBJECT (shell_window);
key = "/apps/evolution/shell/view_defaults/component_id";
gconf_bridge_bind_property (bridge, key, object, "active-view");
@@ -441,22 +459,6 @@ e_shell_window_private_constructed (EShellWindow *shell_window)
key = "/apps/evolution/shell/view_defaults/toolbar_visible";
gconf_bridge_bind_property (bridge, key, object, "toolbar-visible");
- /* Configure the initial size and position of the window by way
- * of either a user-supplied geometry string or the last recorded
- * values. Note that if a geometry string is applied, the window
- * size and position are -not- recorded. */
- if (priv->geometry != NULL) {
- if (!gtk_window_parse_geometry (window, priv->geometry))
- g_printerr (
- "Failed to parse geometry '%s'\n",
- priv->geometry);
- g_free (priv->geometry);
- priv->geometry = NULL;
- } else {
- key = "/apps/evolution/shell/view_defaults/window";
- gconf_bridge_bind_window (bridge, key, window, TRUE, TRUE);
- }
-
shell_window_init_switcher_style (shell_window);
id = "org.gnome.evolution.shell";