From b76bf69d8db9267bd8ab3760c46c893598a1dd44 Mon Sep 17 00:00:00 2001 From: Matthew Loper Date: Tue, 21 Mar 2000 01:27:04 +0000 Subject: New private field in EShellView added, which contains the notebook and a * shell/e-shell-view.h: New private field in EShellView added, which contains the notebook and a hashtable of folders to views. * shell/e-shell-view.c (e_shell_view_set_view): Instead of creating a new control every time we set the view, we now keep our controls in a notebook. This function now switches to the correct notebook page, or creates a new page/control as necessary. (e_shell_view_new): Creates and inserts the notebook into the shell. svn path=/trunk/; revision=2122 --- shell/e-shell-view.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'shell/e-shell-view.h') diff --git a/shell/e-shell-view.h b/shell/e-shell-view.h index 5f5c5d39c6..3045b7adb7 100644 --- a/shell/e-shell-view.h +++ b/shell/e-shell-view.h @@ -11,6 +11,8 @@ #define E_IS_SHELL_VIEW(o) (GTK_CHECK_TYPE ((o), E_SHELL_VIEW_TYPE)) #define E_IS_SHELL_VIEW_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_SHELL_VIEW_TYPE)) +typedef struct _EShellViewPrivate EShellViewPrivate; + struct _EShellView { GnomeApp parent; @@ -22,13 +24,13 @@ struct _EShellView { EFolder *efolder; -/* - * - */ - char shortcut_displayed; + + gboolean shortcut_displayed; GtkWidget *shortcut_hpaned; GtkWidget *shortcut_bar; GtkWidget *contents; + + EShellViewPrivate *priv; }; typedef struct { -- cgit v1.2.3