2 * e-mail-label-list-store.h
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_MAIL_LABEL_LIST_STORE_H
22 #define E_MAIL_LABEL_LIST_STORE_H
26 /* Standard GObject macros */
27 #define E_TYPE_MAIL_LABEL_LIST_STORE \
28 (e_mail_label_list_store_get_type ())
29 #define E_MAIL_LABEL_LIST_STORE(obj) \
30 (G_TYPE_CHECK_INSTANCE_CAST \
31 ((obj), E_TYPE_MAIL_LABEL_LIST_STORE, EMailLabelListStore))
32 #define E_MAIL_LABEL_LIST_STORE_CLASS(cls) \
33 (G_TYPE_CHECK_CLASS_CAST \
34 ((cls), E_TYPE_MAIL_LABEL_LIST_STORE, EMailLabelListStoreClass))
35 #define E_IS_MAIL_LABEL_LIST_STORE(obj) \
36 (G_TYPE_CHECK_INSTANCE_TYPE \
37 ((obj), E_TYPE_MAIL_LABEL_LIST_STORE))
38 #define E_IS_MAIL_LABEL_LIST_STORE_CLASS(cls) \
39 (G_TYPE_CHECK_CLASS_TYPE \
40 ((cls), E_TYPE_MAIL_LABEL_LIST_STORE))
41 #define E_MAIL_LABEL_LIST_STORE_GET_CLASS(obj) \
42 (G_TYPE_INSTANCE_GET_CLASS \
43 ((obj), E_TYPE_MAIL_LABEL_LIST_STORE, EMailLabelListStoreClass))
47 typedef struct _EMailLabelListStore EMailLabelListStore
;
48 typedef struct _EMailLabelListStoreClass EMailLabelListStoreClass
;
49 typedef struct _EMailLabelListStorePrivate EMailLabelListStorePrivate
;
51 struct _EMailLabelListStore
{
53 EMailLabelListStorePrivate
*priv
;
56 struct _EMailLabelListStoreClass
{
57 GtkListStoreClass parent_class
;
58 GtkIconFactory
*icon_factory
;
61 GType
e_mail_label_list_store_get_type (void);
63 e_mail_label_list_store_new (void);
64 gchar
* e_mail_label_list_store_get_name (EMailLabelListStore
*store
,
66 gboolean
e_mail_label_list_store_get_color (EMailLabelListStore
*store
,
69 gchar
* e_mail_label_list_store_get_stock_id (EMailLabelListStore
*store
,
71 gchar
* e_mail_label_list_store_get_tag (EMailLabelListStore
*store
,
73 void e_mail_label_list_store_set (EMailLabelListStore
*store
,
76 const GdkColor
*color
);
77 gboolean
e_mail_label_list_store_lookup (EMailLabelListStore
*store
,
80 gboolean
e_mail_label_tag_is_default (const gchar
*tag
);
84 #endif /* E_MAIL_LABEL_LIST_STORE_H */