Updated Traditional Chinese translation(Hong Kong and Taiwan)
[evolution.git] / calendar / gui / e-task-list-selector.h
blob847a221ba41c02f8dc2f902cd958bc2a22b71d6f
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /* e-task-list-selector.h
4 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
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.
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.
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., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
21 /* XXX This widget is nearly identical to EMemoListSelector. If
22 * ECalendarSelector ever learns how to move selections from
23 * one source to another, perhaps these ESourceSelector sub-
24 * classes could someday be combined. */
26 #ifndef E_TASK_LIST_SELECTOR_H
27 #define E_TASK_LIST_SELECTOR_H
29 #include <libedataserver/e-source-list.h>
30 #include <libedataserverui/e-source-selector.h>
32 /* Standard GObject macros */
33 #define E_TYPE_TASK_LIST_SELECTOR \
34 (e_task_list_selector_get_type ())
35 #define E_TASK_LIST_SELECTOR(obj) \
36 (G_TYPE_CHECK_INSTANCE_CAST \
37 ((obj), E_TYPE_TASK_LIST_SELECTOR, ETaskListSelector))
38 #define E_TASK_LIST_SELECTOR_CLASS(cls) \
39 (G_TYPE_CHECK_CLASS_CAST \
40 ((cls), E_TYPE_TASK_LIST_SELECTOR, ETaskListSelectorClass))
41 #define E_IS_TASK_LIST_SELECTOR(obj) \
42 (G_TYPE_CHECK_INSTANCE_TYPE \
43 ((obj), E_TYPE_TASK_LIST_SELECTOR))
44 #define E_IS_TASK_LIST_SELECTOR_CLASS(cls) \
45 (G_TYPE_CHECK_CLASS_TYPE \
46 ((cls), E_TYPE_TASK_LIST_SELECTOR))
47 #define E_TASK_LIST_SELECTOR_GET_CLASS(obj) \
48 (G_TYPE_INSTANCE_GET_CLASS \
49 ((obj), E_TYPE_TASK_LIST_SELECTOR, ETaskListSelectorClass))
51 G_BEGIN_DECLS
53 typedef struct _ETaskListSelector ETaskListSelector;
54 typedef struct _ETaskListSelectorClass ETaskListSelectorClass;
55 typedef struct _ETaskListSelectorPrivate ETaskListSelectorPrivate;
57 struct _ETaskListSelector {
58 ESourceSelector parent;
59 ETaskListSelectorPrivate *priv;
62 struct _ETaskListSelectorClass {
63 ESourceSelectorClass parent_class;
66 GType e_task_list_selector_get_type (void);
67 GtkWidget * e_task_list_selector_new (ESourceList *source_list);
69 G_END_DECLS
71 #endif /* E_TASK_LIST_SELECTOR_H */