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
This commit is contained in:
Ettore Perazzoli
2001-09-17 17:51:01 +00:00
parent 411b2707bd
commit 8fcec5b917
2 changed files with 9 additions and 4 deletions
+6
View File
@@ -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
+3 -4
View File
@@ -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);