aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-10-06 04:03:43 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-10-06 04:03:43 +0800
commita19af27803a7c021eb631102194aeb959b273ea5 (patch)
treea6a51c1d2b1d37b1e4aaaa64be8fd66019cf6925 /shell
parentb36809d0b836c0d7816952c97fd26c6d50398f1a (diff)
downloadgsoc2013-evolution-a19af27803a7c021eb631102194aeb959b273ea5.tar.gz
gsoc2013-evolution-a19af27803a7c021eb631102194aeb959b273ea5.tar.zst
gsoc2013-evolution-a19af27803a7c021eb631102194aeb959b273ea5.zip
Get the right hpaned positions for when the shortcut bar and/or the folder
* e-shell-view.c (e_shell_view_save_settings): Get the right hpaned positions for when the shortcut bar and/or the folder bar are visible. svn path=/trunk/; revision=13461
Diffstat (limited to 'shell')
-rw-r--r--shell/ChangeLog6
-rw-r--r--shell/e-shell-view.c10
2 files changed, 14 insertions, 2 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index be73a62d09..2b23c12358 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,5 +1,11 @@
2001-10-05 Ettore Perazzoli <ettore@ximian.com>
+ * e-shell-view.c (e_shell_view_save_settings): Get the right
+ hpaned positions for when the shortcut bar and/or the folder bar
+ are visible.
+
+2001-10-05 Ettore Perazzoli <ettore@ximian.com>
+
* e-shell.c (impl_Shell_handleURI): Handle the return value from
`evolution_shell_component_client_handle_external_uri()' as an
EvolutionShellComponentClientResult instead of treating it as a
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index 893c6fe4e9..edb6de1f75 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -2347,11 +2347,17 @@ e_shell_view_save_settings (EShellView *shell_view,
g_free (key);
key = g_strconcat (prefix, "HPanedPosition", NULL);
- bonobo_config_set_long (db, key, priv->hpaned_position, NULL);
+ if (GTK_WIDGET_VISIBLE (priv->shortcut_frame))
+ bonobo_config_set_long (db, key, E_PANED (priv->hpaned)->child1_size, NULL);
+ else
+ 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, priv->view_hpaned_position, NULL);
+ if (GTK_WIDGET_VISIBLE (priv->storage_set_view_box))
+ bonobo_config_set_long (db, key, E_PANED (priv->view_hpaned)->child1_size, NULL);
+ else
+ bonobo_config_set_long (db, key, priv->view_hpaned_position, NULL);
g_free (key);
key = g_strconcat (prefix, "DisplayedURI", NULL);