From c6c02db6022e3a702c096d3f7cbc34af8cf68342 Mon Sep 17 00:00:00 2001 From: jacob berkman Date: Sat, 26 May 2001 00:43:14 +0000 Subject: place the shortcut bar in a frame 2001-05-25 jacob berkman * e-shell-view.c (setup_widgets): place the shortcut bar in a frame svn path=/trunk/; revision=10006 --- shell/ChangeLog | 5 +++++ shell/e-shell-view.c | 18 ++++++++++++------ 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/shell/ChangeLog b/shell/ChangeLog index ab1f215fe5..607a33b44b 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,8 @@ +2001-05-25 jacob berkman + + * e-shell-view.c (setup_widgets): place the shortcut bar in a + frame + 2001-05-21 Christopher James Lahey * Makefile.am (INCLUDES): Added ETSPECDIR. Added diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index d90f81f5fd..d2c5159620 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -93,6 +93,7 @@ struct _EShellViewPrivate { GtkWidget *view_hpaned; GtkWidget *contents; GtkWidget *notebook; + GtkWidget *shortcut_frame; GtkWidget *shortcut_bar; GtkWidget *storage_set_title_bar; GtkWidget *storage_set_view; @@ -687,7 +688,7 @@ setup_widgets (EShellView *shell_view) /* The progress bar. */ - setup_progress_bar (shell_view); + setup_progress_bar (shell_view); /* The shortcut bar. */ @@ -698,6 +699,9 @@ setup_widgets (EShellView *shell_view) gtk_signal_connect (GTK_OBJECT (priv->shortcut_bar), "hide_requested", GTK_SIGNAL_FUNC (hide_requested_cb), shell_view); + priv->shortcut_frame = gtk_frame_new (NULL); + gtk_frame_set_shadow_type (GTK_FRAME (priv->shortcut_frame), GTK_SHADOW_IN); + /* The storage set view. */ setup_storage_set_subwindow (shell_view); @@ -732,7 +736,8 @@ setup_widgets (EShellView *shell_view) TRUE, TRUE, 2); priv->hpaned = e_hpaned_new (); - e_paned_pack1 (E_PANED (priv->hpaned), priv->shortcut_bar, FALSE, FALSE); + gtk_container_add (GTK_CONTAINER (priv->shortcut_frame), priv->shortcut_bar); + e_paned_pack1 (E_PANED (priv->hpaned), priv->shortcut_frame, FALSE, FALSE); e_paned_pack2 (E_PANED (priv->hpaned), priv->view_vbox, TRUE, FALSE); e_paned_set_position (E_PANED (priv->hpaned), DEFAULT_SHORTCUT_BAR_WIDTH); @@ -740,6 +745,7 @@ setup_widgets (EShellView *shell_view) /* Show stuff. */ + gtk_widget_show (priv->shortcut_frame); gtk_widget_show (priv->shortcut_bar); gtk_widget_show (priv->storage_set_view); gtk_widget_show (priv->storage_set_view_box); @@ -1799,13 +1805,13 @@ e_shell_view_set_shortcut_bar_mode (EShellView *shell_view, return; if (mode == E_SHELL_VIEW_SUBWINDOW_STICKY) { - if (! GTK_WIDGET_VISIBLE (priv->shortcut_bar)) { - gtk_widget_show (priv->shortcut_bar); + if (! GTK_WIDGET_VISIBLE (priv->shortcut_frame)) { + gtk_widget_show (priv->shortcut_frame); e_paned_set_position (E_PANED (priv->hpaned), priv->hpaned_position); } } else { - if (GTK_WIDGET_VISIBLE (priv->shortcut_bar)) { - gtk_widget_hide (priv->shortcut_bar); + 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); -- cgit v1.2.3