1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Copyright (C) 2005 Novell, Inc.
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of version 2 of the GNU Lesser General Public
7 * License as published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
20 #ifndef __E_CATEGORIES_DIALOG__
21 #define __E_CATEGORIES_DIALOG__
23 #include <gtk/gtkdialog.h>
27 #define E_TYPE_CATEGORIES_DIALOG (e_categories_dialog_get_type ())
28 #define E_CATEGORIES_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), E_TYPE_CATEGORIES_DIALOG, ECategoriesDialog))
29 #define E_CATEGORIES_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), E_TYPE_CATEGORIES_DIALOG, ECategoriesDialogClass))
30 #define E_IS_CATEGORIES_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_TYPE_CATEGORIES_DIALOG))
31 #define E_IS_CATEGORIES_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), E_TYPE_CATEGORIES_DIALOG))
33 typedef struct _ECategoriesDialog ECategoriesDialog;
34 typedef struct _ECategoriesDialogPrivate ECategoriesDialogPrivate;
35 typedef struct _ECategoriesDialogClass ECategoriesDialogClass;
37 struct _ECategoriesDialog {
39 ECategoriesDialogPrivate *priv;
42 struct _ECategoriesDialogClass {
43 GtkDialogClass parent_class;
46 GType e_categories_dialog_get_type (void);
48 GtkWidget *e_categories_dialog_new (const char *initial_category_list);
49 const char *e_categories_dialog_get_categories (ECategoriesDialog *dialog);
50 void e_categories_dialog_set_categories (ECategoriesDialog *dialog, const char *categories);