1 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ |
---|
2 | /* e-task-bar.h |
---|
3 | * |
---|
4 | * Copyright (C) 2001 Ximian, Inc. |
---|
5 | * |
---|
6 | * This program is free software; you can redistribute it and/or |
---|
7 | * modify it under the terms of version 2 of the GNU General Public |
---|
8 | * License as published by the Free Software Foundation. |
---|
9 | * |
---|
10 | * This program is distributed in the hope that it will be useful, |
---|
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
13 | * General Public License for more details. |
---|
14 | * |
---|
15 | * You should have received a copy of the GNU General Public |
---|
16 | * License along with this program; if not, write to the |
---|
17 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
---|
18 | * Boston, MA 02111-1307, USA. |
---|
19 | * |
---|
20 | * Author: Ettore Perazzoli <ettore@ximian.com> |
---|
21 | */ |
---|
22 | |
---|
23 | #ifndef _E_TASK_BAR_H_ |
---|
24 | #define _E_TASK_BAR_H_ |
---|
25 | |
---|
26 | #include "e-task-widget.h" |
---|
27 | |
---|
28 | #include <gtk/gtkhbox.h> |
---|
29 | |
---|
30 | #ifdef __cplusplus |
---|
31 | extern "C" { |
---|
32 | #pragma } |
---|
33 | #endif /* __cplusplus */ |
---|
34 | |
---|
35 | #define E_TYPE_TASK_BAR (e_task_bar_get_type ()) |
---|
36 | #define E_TASK_BAR(obj) (GTK_CHECK_CAST ((obj), E_TYPE_TASK_BAR, ETaskBar)) |
---|
37 | #define E_TASK_BAR_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), E_TYPE_TASK_BAR, ETaskBarClass)) |
---|
38 | #define E_IS_TASK_BAR(obj) (GTK_CHECK_TYPE ((obj), E_TYPE_TASK_BAR)) |
---|
39 | #define E_IS_TASK_BAR_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), E_TYPE_TASK_BAR)) |
---|
40 | |
---|
41 | |
---|
42 | typedef struct _ETaskBar ETaskBar; |
---|
43 | typedef struct _ETaskBarPrivate ETaskBarPrivate; |
---|
44 | typedef struct _ETaskBarClass ETaskBarClass; |
---|
45 | |
---|
46 | struct _ETaskBar { |
---|
47 | GtkHBox parent; |
---|
48 | }; |
---|
49 | |
---|
50 | struct _ETaskBarClass { |
---|
51 | GtkHBoxClass parent_class; |
---|
52 | }; |
---|
53 | |
---|
54 | |
---|
55 | GtkType e_task_bar_get_type (void); |
---|
56 | void e_task_bar_construct (ETaskBar *task_bar); |
---|
57 | GtkWidget *e_task_bar_new (void); |
---|
58 | |
---|
59 | void e_task_bar_prepend_task (ETaskBar *task_bar, |
---|
60 | ETaskWidget *task_widget); |
---|
61 | void e_task_bar_remove_task (ETaskBar *task_bar, |
---|
62 | int n); |
---|
63 | |
---|
64 | ETaskWidget *e_task_bar_get_task_widget (ETaskBar *task_bar, |
---|
65 | int n); |
---|
66 | |
---|
67 | #ifdef __cplusplus |
---|
68 | } |
---|
69 | #endif /* __cplusplus */ |
---|
70 | |
---|
71 | #endif /* _E_TASK_BAR_H_ */ |
---|