From d0b0a5e772cf6de1370ee2e362e0637ec721c760 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Thu, 1 Jun 2000 04:19:07 +0000 Subject: Make the tree view slightly larger and hidden by default. Also, set auto-resize mode for it so that its horizontal scrollbar does not behave in a weird way. svn path=/trunk/; revision=3324 --- shell/ChangeLog | 11 +++++++++++ shell/e-shell-view.c | 6 ++++-- shell/e-storage-set-view.c | 1 + 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/shell/ChangeLog b/shell/ChangeLog index 2be202631e..7795d891ea 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,14 @@ +2000-06-01 Ettore Perazzoli + + * e-shell-view.c (DEFAULT_TREE_WIDTH): Made the tree 150 pixel + wide [instead of 100]. + (setup_widgets): Use `DEFAULT_TREE_WIDTH' instead of + `DEFAULT_SHORTCUT_BAR_WIDTH' where appropriate. + (e_shell_view_construct): Hide the folder bar by default. + + * e-storage-set-view.c (e_storage_set_view_construct): Set + auto-resize mode for column one. + 2000-06-01 Ettore Perazzoli * e-shell-view-menu.c (e_shell_view_menu_setup): Set the diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index a003f10c8f..cfd5c2d4e7 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -96,7 +96,7 @@ enum { static guint signals[LAST_SIGNAL] = { 0 }; #define DEFAULT_SHORTCUT_BAR_WIDTH 100 -#define DEFAULT_TREE_WIDTH 100 +#define DEFAULT_TREE_WIDTH 130 #define DEFAULT_WIDTH 600 #define DEFAULT_HEIGHT 600 @@ -262,7 +262,7 @@ setup_widgets (EShellView *shell_view) priv->view_hpaned = e_hpaned_new (); e_paned_add1 (E_PANED (priv->view_hpaned), priv->storage_set_view_box); e_paned_add2 (E_PANED (priv->view_hpaned), priv->notebook); - e_paned_set_position (E_PANED (priv->view_hpaned), DEFAULT_SHORTCUT_BAR_WIDTH); + e_paned_set_position (E_PANED (priv->view_hpaned), DEFAULT_TREE_WIDTH); gtk_box_pack_start (GTK_BOX (priv->view_vbox), priv->view_title_bar, FALSE, FALSE, 0); @@ -436,6 +436,8 @@ e_shell_view_construct (EShellView *shell_view, setup_bonobo_ui_handler (shell_view); e_shell_view_menu_setup (shell_view); + + e_shell_view_set_folder_bar_mode (shell_view, E_SHELL_VIEW_SUBWINDOW_HIDDEN); } GtkWidget * diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c index 3b0aabe044..fc54c35c36 100644 --- a/shell/e-storage-set-view.c +++ b/shell/e-storage-set-view.c @@ -765,6 +765,7 @@ e_storage_set_view_construct (EStorageSetView *storage_set_view, gtk_ctree_set_expander_style (ctree, GTK_CTREE_EXPANDER_SQUARE); gtk_clist_set_selection_mode (GTK_CLIST (ctree), GTK_SELECTION_BROWSE); gtk_clist_set_row_height (GTK_CLIST (ctree), E_SHELL_MINI_ICON_SIZE); + gtk_clist_set_column_auto_resize (GTK_CLIST (ctree), 0, TRUE); priv = storage_set_view->priv; -- cgit v1.2.3