aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-09-29 05:18:57 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-09-29 05:18:57 +0800
commit8f338e40f91fcdf430b29ea4b9ebcd3e384b0ff1 (patch)
tree5a6f0afe9fad02a85c2e83424d92019ca018ca59 /shell/e-shell-view.c
parent9df95b6286a371de342732f711325122194ffa85 (diff)
downloadgsoc2013-evolution-8f338e40f91fcdf430b29ea4b9ebcd3e384b0ff1.tar
gsoc2013-evolution-8f338e40f91fcdf430b29ea4b9ebcd3e384b0ff1.tar.gz
gsoc2013-evolution-8f338e40f91fcdf430b29ea4b9ebcd3e384b0ff1.tar.bz2
gsoc2013-evolution-8f338e40f91fcdf430b29ea4b9ebcd3e384b0ff1.tar.lz
gsoc2013-evolution-8f338e40f91fcdf430b29ea4b9ebcd3e384b0ff1.tar.xz
gsoc2013-evolution-8f338e40f91fcdf430b29ea4b9ebcd3e384b0ff1.tar.zst
gsoc2013-evolution-8f338e40f91fcdf430b29ea4b9ebcd3e384b0ff1.zip
[Fix #8434, Shortcut bar not shown properly.]
* e-shell-view.c (e_shell_view_show_shortcut_bar): Set the hpaned_position from the EPaned *before* hiding it -- otherwise, the position will of course always be zero. (e_shell_view_save_settings): Save from ->hpaned_position and ->view_hpaned_position. svn path=/trunk/; revision=13234
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r--shell/e-shell-view.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index cc651d1d3b..7387781e54 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -2079,13 +2079,13 @@ e_shell_view_show_shortcut_bar (EShellView *shell_view,
e_paned_set_position (E_PANED (priv->hpaned), priv->hpaned_position);
}
} else {
- e_paned_set_position (E_PANED (priv->hpaned), 0);
if (GTK_WIDGET_VISIBLE (priv->shortcut_frame)) {
- gtk_widget_hide (priv->shortcut_frame);
/* FIXME this is a private field! */
priv->hpaned_position = E_PANED (priv->hpaned)->child1_size;
- e_paned_set_position (E_PANED (priv->hpaned), 0);
+
+ gtk_widget_hide (priv->shortcut_frame);
}
+ e_paned_set_position (E_PANED (priv->hpaned), 0);
}
priv->shortcut_bar_shown = !! show;
@@ -2339,13 +2339,11 @@ e_shell_view_save_settings (EShellView *shell_view,
g_free (key);
key = g_strconcat (prefix, "HPanedPosition", NULL);
- bonobo_config_set_long (db, key,
- e_paned_get_position (E_PANED (priv->hpaned)), NULL);
+ bonobo_config_set_long (db, key, priv->hpaned_position, NULL);
g_free (key);
key = g_strconcat (prefix, "ViewHPanedPosition", NULL);
- bonobo_config_set_long (db, key,
- e_paned_get_position (E_PANED (priv->view_hpaned)), NULL);
+ bonobo_config_set_long (db, key, priv->view_hpaned_position, NULL);
g_free (key);
key = g_strconcat (prefix, "DisplayedURI", NULL);