From e033af05d726f5307efa12879ad0f6f3e88bb041 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Wed, 24 May 2000 23:00:39 +0000 Subject: Added widgets/e-paned/Makefile. 2000-05-24 Christopher James Lahey * configure.in: Added widgets/e-paned/Makefile. * tests/ui-tests/message-browser.c: Switched from GtkPaned to EPaned. * widgets/Makefile.am: Added e-paned directory. * widgets/e-paned/, widgets/e-paned/.cvsignore, widgets/e-paned/Makefile.am, widgets/e-paned/e-hpaned.c, widgets/e-paned/e-hpaned.h, widgets/e-paned/e-paned.c, widgets/e-paned/e-paned.h, widgets/e-paned/e-vpaned.c, widgets/e-paned/e-vpaned.h: New widget based completely on GtkPaned from 1.4. This will be more advanced soon. From calendar/ChangeLog: 2000-05-24 Christopher James Lahey * gui/Makefile.am: Added libepaned.a. * gui/gnome-cal.c: Switched from GtkPaned to EPaned. From mail/ChangeLog: 2000-05-24 Christopher James Lahey * Makefile.am: Added libepaned.a. * folder-browser.c: Switched from GtkPaned to EPaned. From shell/ChangeLog: 2000-05-24 Christopher James Lahey * Makefile.am: Added libepaned.a. * e-shell-view.c: Switched from GtkPaned to EPaned. From widgets/shortcut-bar/ChangeLog: 2000-05-24 Christopher James Lahey * Makefile.am: Added libepaned.a. * test-shortcut-bar.c: Switched from GtkPaned to EPaned. svn path=/trunk/; revision=3191 --- shell/e-shell-view.c | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'shell/e-shell-view.c') diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index f3dd6d1a9d..8f6e0a307e 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -42,6 +42,8 @@ #include "e-shell-view.h" #include "e-shell-view-menu.h" +#include + #define PARENT_TYPE gnome_app_get_type () /* Losing GnomeApp does not define GNOME_TYPE_APP. */ static GnomeAppClass *parent_class = NULL; @@ -255,15 +257,15 @@ setup_widgets (EShellView *shell_view) /* Put things into a paned and the paned into the GnomeApp. */ - priv->hpaned2 = gtk_hpaned_new (); - gtk_paned_add1 (GTK_PANED (priv->hpaned2), priv->storage_set_view_box); - gtk_paned_add2 (GTK_PANED (priv->hpaned2), priv->notebook); - gtk_paned_set_position (GTK_PANED (priv->hpaned2), DEFAULT_SHORTCUT_BAR_WIDTH); + priv->hpaned2 = e_hpaned_new (); + e_paned_add1 (E_PANED (priv->hpaned2), priv->storage_set_view_box); + e_paned_add2 (E_PANED (priv->hpaned2), priv->notebook); + e_paned_set_position (E_PANED (priv->hpaned2), DEFAULT_SHORTCUT_BAR_WIDTH); - priv->hpaned1 = gtk_hpaned_new (); - gtk_paned_add1 (GTK_PANED (priv->hpaned1), priv->shortcut_bar_box); - gtk_paned_add2 (GTK_PANED (priv->hpaned1), priv->hpaned2); - gtk_paned_set_position (GTK_PANED (priv->hpaned1), DEFAULT_SHORTCUT_BAR_WIDTH); + priv->hpaned1 = e_hpaned_new (); + e_paned_add1 (E_PANED (priv->hpaned1), priv->shortcut_bar_box); + e_paned_add2 (E_PANED (priv->hpaned1), priv->hpaned2); + e_paned_set_position (E_PANED (priv->hpaned1), DEFAULT_SHORTCUT_BAR_WIDTH); gtk_container_set_border_width (GTK_CONTAINER (priv->hpaned1), 0); gtk_container_set_border_width (GTK_CONTAINER (priv->hpaned2), 0); @@ -762,14 +764,14 @@ e_shell_view_show_shortcuts (EShellView *shell_view, if (show) { if (! GTK_WIDGET_VISIBLE (priv->shortcut_bar_box)) { gtk_widget_show (priv->shortcut_bar_box); - gtk_paned_set_position (GTK_PANED (priv->hpaned1), priv->hpaned1_position); + e_paned_set_position (E_PANED (priv->hpaned1), priv->hpaned1_position); } } else { if (GTK_WIDGET_VISIBLE (priv->shortcut_bar_box)) { gtk_widget_hide (priv->shortcut_bar_box); /* FIXME this is a private field! */ - priv->hpaned1_position = GTK_PANED (priv->hpaned1)->child1_size; - gtk_paned_set_position (GTK_PANED (priv->hpaned1), 0); + priv->hpaned1_position = E_PANED (priv->hpaned1)->child1_size; + e_paned_set_position (E_PANED (priv->hpaned1), 0); } } } @@ -788,14 +790,14 @@ e_shell_view_show_folders (EShellView *shell_view, if (show) { if (! GTK_WIDGET_VISIBLE (priv->storage_set_view_box)) { gtk_widget_show (priv->storage_set_view_box); - gtk_paned_set_position (GTK_PANED (priv->hpaned2), priv->hpaned2_position); + e_paned_set_position (E_PANED (priv->hpaned2), priv->hpaned2_position); } } else { if (GTK_WIDGET_VISIBLE (priv->storage_set_view_box)) { gtk_widget_hide (priv->storage_set_view_box); /* FIXME this is a private field! */ - priv->hpaned2_position = GTK_PANED (priv->hpaned2)->child1_size; - gtk_paned_set_position (GTK_PANED (priv->hpaned2), 0); + priv->hpaned2_position = E_PANED (priv->hpaned2)->child1_size; + e_paned_set_position (E_PANED (priv->hpaned2), 0); } } } -- cgit