aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-09-18 01:51:01 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-09-18 01:51:01 +0800
commit8fcec5b917fe5763ca9b0d682d9d9d2bf7ca215e (patch)
treea0b1f29ea28af7e1f26ea94b1f529ca73e9a726e
parent411b2707bd3a9f89773601b309c9f40c78788e3d (diff)
downloadgsoc2013-evolution-8fcec5b917fe5763ca9b0d682d9d9d2bf7ca215e.tar
gsoc2013-evolution-8fcec5b917fe5763ca9b0d682d9d9d2bf7ca215e.tar.gz
gsoc2013-evolution-8fcec5b917fe5763ca9b0d682d9d9d2bf7ca215e.tar.bz2
gsoc2013-evolution-8fcec5b917fe5763ca9b0d682d9d9d2bf7ca215e.tar.lz
gsoc2013-evolution-8fcec5b917fe5763ca9b0d682d9d9d2bf7ca215e.tar.xz
gsoc2013-evolution-8fcec5b917fe5763ca9b0d682d9d9d2bf7ca215e.tar.zst
gsoc2013-evolution-8fcec5b917fe5763ca9b0d682d9d9d2bf7ca215e.zip
Hide the storage_set_view_box *before* getting the child1_size [otherwise,
* e-shell-view.c (e_shell_view_show_folder_bar): Hide the storage_set_view_box *before* getting the child1_size [otherwise, the latter will, um, always be zero]. svn path=/trunk/; revision=12902
-rw-r--r--shell/ChangeLog6
-rw-r--r--shell/e-shell-view.c7
2 files changed, 9 insertions, 4 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index aa3490349c..d0a785676f 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,9 @@
+2001-09-16 Ettore Perazzoli <ettore@ximian.com>
+
+ * e-shell-view.c (e_shell_view_show_folder_bar): Hide the
+ storage_set_view_box *before* getting the child1_size [otherwise,
+ the latter will, um, always be zero].
+
2001-09-16 Christopher James Lahey <clahey@ximian.com>
* e-storage-set-view.c (etree_get_node_by_id): Made save_id const
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index db6237d2aa..ffa1e2a469 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -2127,15 +2127,14 @@ e_shell_view_show_folder_bar (EShellView *shell_view,
e_shell_folder_title_bar_set_clickable (E_SHELL_FOLDER_TITLE_BAR (priv->folder_title_bar),
FALSE);
} else {
- e_paned_set_position (E_PANED (priv->view_hpaned), 0);
-
if (GTK_WIDGET_VISIBLE (priv->storage_set_view_box)) {
- gtk_widget_hide (priv->storage_set_view_box);
/* FIXME this is a private field! */
priv->view_hpaned_position = E_PANED (priv->view_hpaned)->child1_size;
- e_paned_set_position (E_PANED (priv->view_hpaned), 0);
+ gtk_widget_hide (priv->storage_set_view_box);
}
+ e_paned_set_position (E_PANED (priv->view_hpaned), 0);
+
e_title_bar_set_button_mode (E_TITLE_BAR (priv->storage_set_title_bar),
E_TITLE_BAR_BUTTON_MODE_PIN);