1 /*
2  * e-activity-bar.h
3  *
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.
7  *
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
11  * for more details.
12  *
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/>.
15  *
16  */
17 
18 #if !defined (__E_UTIL_H_INSIDE__) && !defined (LIBEUTIL_COMPILATION)
19 #error "Only <e-util/e-util.h> should be included directly."
20 #endif
21 
22 #ifndef E_ACTIVITY_BAR_H
23 #define E_ACTIVITY_BAR_H
24 
25 #include <gtk/gtk.h>
26 #include <e-util/e-activity.h>
27 
28 /* Standard GObject macros */
29 #define E_TYPE_ACTIVITY_BAR \
30 	(e_activity_bar_get_type ())
31 #define E_ACTIVITY_BAR(obj) \
32 	(G_TYPE_CHECK_INSTANCE_CAST \
33 	((obj), E_TYPE_ACTIVITY_BAR, EActivityBar))
34 #define E_ACTIVITY_BAR_CLASS(cls) \
35 	(G_TYPE_CHECK_CLASS_CAST \
36 	((cls), E_TYPE_ACTIVITY_BAR, EActivityBarClass))
37 #define E_IS_ACTIVITY_BAR(obj) \
38 	(G_TYPE_CHECK_INSTANCE_TYPE \
39 	((obj), E_TYPE_ACTIVITY_BAR))
40 #define E_IS_ACTIVITY_BAR_CLASS(cls) \
41 	(G_TYPE_CHECK_CLASS_TYPE \
42 	((cls), E_TYPE_ACTIVITY_BAR))
43 #define E_ACTIVITY_BAR_GET_CLASS(obj) \
44 	(G_TYPE_CHECK_INSTANCE_GET_TYPE \
45 	((obj), E_TYPE_ACTIVITY_BAR, EActivityBarClass))
46 
47 G_BEGIN_DECLS
48 
49 typedef struct _EActivityBar EActivityBar;
50 typedef struct _EActivityBarClass EActivityBarClass;
51 typedef struct _EActivityBarPrivate EActivityBarPrivate;
52 
53 struct _EActivityBar {
54 	GtkInfoBar parent;
55 	EActivityBarPrivate *priv;
56 };
57 
58 struct _EActivityBarClass {
59 	GtkInfoBarClass parent_class;
60 };
61 
62 GType		e_activity_bar_get_type		(void) G_GNUC_CONST;
63 GtkWidget *	e_activity_bar_new		(void);
64 EActivity *	e_activity_bar_get_activity	(EActivityBar *bar);
65 void		e_activity_bar_set_activity	(EActivityBar *bar,
66 						 EActivity *activity);
67 
68 G_END_DECLS
69 
70 #endif /* E_ACTIVITY_BAR_H */
71