4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program; if not, see <http://www.gnu.org/licenses/>.
17 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
21 #ifndef E_SHELL_SIDEBAR_H
22 #define E_SHELL_SIDEBAR_H
24 #include <shell/e-shell-common.h>
26 /* Standard GObject macros */
27 #define E_TYPE_SHELL_SIDEBAR \
28 (e_shell_sidebar_get_type ())
29 #define E_SHELL_SIDEBAR(obj) \
30 (G_TYPE_CHECK_INSTANCE_CAST \
31 ((obj), E_TYPE_SHELL_SIDEBAR, EShellSidebar))
32 #define E_SHELL_SIDEBAR_CLASS(cls) \
33 (G_TYPE_CHECK_CLASS_CAST \
34 ((cls), E_TYPE_SHELL_SIDEBAR, EShellSidebarClass))
35 #define E_IS_SHELL_SIDEBAR(obj) \
36 (G_TYPE_CHECK_INSTANCE_TYPE \
37 ((obj), E_TYPE_SHELL_SIDEBAR))
38 #define E_IS_SHELL_SIDEBAR_CLASS(cls) \
39 (G_TYPE_CHECK_CLASS_TYPE \
40 ((obj), E_TYPE_SHELL_SIDEBAR))
41 #define E_SHELL_SIDEBAR_GET_CLASS(obj) \
42 (G_TYPE_INSTANCE_GET_CLASS \
43 ((obj), E_TYPE_SHELL_SIDEBAR, EShellSidebarClass))
47 /* Avoid including <e-shell-view.h>, because it includes us! */
50 typedef struct _EShellSidebar EShellSidebar
;
51 typedef struct _EShellSidebarClass EShellSidebarClass
;
52 typedef struct _EShellSidebarPrivate EShellSidebarPrivate
;
57 * Contains only private data that should be read and manipulated using the
60 struct _EShellSidebar
{
62 EShellSidebarPrivate
*priv
;
65 struct _EShellSidebarClass
{
66 GtkBinClass parent_class
;
68 guint32 (*check_state
) (EShellSidebar
*shell_sidebar
);
71 GType
e_shell_sidebar_get_type (void);
72 GtkWidget
* e_shell_sidebar_new (struct _EShellView
*shell_view
);
73 guint32
e_shell_sidebar_check_state (EShellSidebar
*shell_sidebar
);
75 e_shell_sidebar_get_shell_view (EShellSidebar
*shell_sidebar
);
76 const gchar
* e_shell_sidebar_get_icon_name (EShellSidebar
*shell_sidebar
);
77 void e_shell_sidebar_set_icon_name (EShellSidebar
*shell_sidebar
,
78 const gchar
*icon_name
);
79 const gchar
* e_shell_sidebar_get_primary_text
80 (EShellSidebar
*shell_sidebar
);
81 void e_shell_sidebar_set_primary_text
82 (EShellSidebar
*shell_sidebar
,
83 const gchar
*primary_text
);
84 const gchar
* e_shell_sidebar_get_secondary_text
85 (EShellSidebar
*shell_sidebar
);
86 void e_shell_sidebar_set_secondary_text
87 (EShellSidebar
*shell_sidebar
,
88 const gchar
*secondary_text
);
92 #endif /* E_SHELL_SIDEBAR_H */