1 /* 2 * e-mail-label-dialog.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 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) 18 * 19 */ 20 21 #ifndef E_MAIL_LABEL_DIALOG_H 22 #define E_MAIL_LABEL_DIALOG_H 23 24 #include <gtk/gtk.h> 25 26 /* Standard GObject macros */ 27 #define E_TYPE_MAIL_LABEL_DIALOG \ 28 (e_mail_label_dialog_get_type ()) 29 #define E_MAIL_LABEL_DIALOG(obj) \ 30 (G_TYPE_CHECK_INSTANCE_CAST \ 31 ((obj), E_TYPE_MAIL_LABEL_DIALOG, EMailLabelDialog)) 32 #define E_MAIL_LABEL_DIALOG_CLASS(cls) \ 33 (G_TYPE_CHECK_CLASS_CAST \ 34 ((cls), E_TYPE_MAIL_LABEL_DIALOG, EMailLabelDialogClass)) 35 #define E_IS_MAIL_LABEL_DIALOG(obj) \ 36 (G_TYPE_CHECK_INSTANCE_TYPE \ 37 ((obj), E_TYPE_MAIL_LABEL_DIALOG)) 38 #define E_IS_MAIL_LABEL_DIALOG_CLASS(cls) \ 39 (G_TYPE_CHECK_CLASS_TYPE \ 40 ((cls), E_TYPE_MAIL_LABEL_DIALOG)) 41 #define E_MAIL_LABEL_DIALOG_GET_CLASS(obj) \ 42 (G_TYPE_INSTANCE_GET_CLASS \ 43 ((obj), E_TYPE_MAIL_LABEL_DIALOG, EMailLabelDialogClass)) 44 45 G_BEGIN_DECLS 46 47 typedef struct _EMailLabelDialog EMailLabelDialog; 48 typedef struct _EMailLabelDialogClass EMailLabelDialogClass; 49 typedef struct _EMailLabelDialogPrivate EMailLabelDialogPrivate; 50 51 struct _EMailLabelDialog { 52 GtkDialog parent; 53 EMailLabelDialogPrivate *priv; 54 }; 55 56 struct _EMailLabelDialogClass { 57 GtkDialogClass parent_class; 58 }; 59 60 GType e_mail_label_dialog_get_type (void); 61 GtkWidget * e_mail_label_dialog_new (GtkWindow *parent); 62 const gchar * e_mail_label_dialog_get_label_name 63 (EMailLabelDialog *dialog); 64 void e_mail_label_dialog_set_label_name 65 (EMailLabelDialog *dialog, 66 const gchar *label_name); 67 void e_mail_label_dialog_get_label_color 68 (EMailLabelDialog *dialog, 69 GdkColor *label_color); 70 void e_mail_label_dialog_set_label_color 71 (EMailLabelDialog *dialog, 72 const GdkColor *label_color); 73 74 G_END_DECLS 75 76 #endif /* E_MAIL_LABEL_DIALOG_H */ 77