1 /* 2 * 3 * This program is free software; you can redistribute it and/or modify it 4 * under the terms of the GNU Lesser General Public License as published by 5 * the Free Software Foundation. 6 * 7 * This program is distributed in the hope that it will be useful, but 8 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 9 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 10 * for more details. 11 * 12 * You should have received a copy of the GNU Lesser General Public License 13 * along with this program; if not, see <http://www.gnu.org/licenses/>. 14 * 15 * 16 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) 17 * 18 */ 19 20 #ifndef E_COMPOSER_TEXT_HEADER_H 21 #define E_COMPOSER_TEXT_HEADER_H 22 23 #include <composer/e-composer-header.h> 24 25 /* Standard GObject macros */ 26 #define E_TYPE_COMPOSER_TEXT_HEADER \ 27 (e_composer_text_header_get_type ()) 28 #define E_COMPOSER_TEXT_HEADER(obj) \ 29 (G_TYPE_CHECK_INSTANCE_CAST \ 30 ((obj), E_TYPE_COMPOSER_TEXT_HEADER, EComposerTextHeader)) 31 #define E_COMPOSER_TEXT_HEADER_CLASS(cls) \ 32 (G_TYPE_CHECK_CLASS_CAST \ 33 ((cls), E_TYPE_COMPOSER_TEXT_HEADER, EComposerTextHeaderClass)) 34 #define E_IS_COMPOSER_TEXT_HEADER(obj) \ 35 (G_TYPE_CHECK_INSTANCE_TYPE \ 36 ((obj), E_TYPE_COMPOSER_TEXT_HEADER)) 37 #define E_IS_COMPOSER_TEXT_HEADER_CLASS(cls) \ 38 (G_TYPE_CHECK_CLASS_TYPE \ 39 ((cls), E_TYPE_COMPOSER_TEXT_HEADER)) 40 #define E_COMPOSER_TEXT_HEADER_GET_CLASS(obj) \ 41 (G_TYPE_INSTANCE_GET_CLASS \ 42 ((obj), E_TYPE_COMPOSER_TEXT_HEADER, EComposerTextHeaderClass)) 43 44 G_BEGIN_DECLS 45 46 typedef struct _EComposerTextHeader EComposerTextHeader; 47 typedef struct _EComposerTextHeaderClass EComposerTextHeaderClass; 48 49 struct _EComposerTextHeader { 50 EComposerHeader parent; 51 }; 52 53 struct _EComposerTextHeaderClass { 54 EComposerHeaderClass parent_class; 55 56 GType entry_type; 57 }; 58 59 GType e_composer_text_header_get_type (void); 60 EComposerHeader * 61 e_composer_text_header_new_label 62 (ESourceRegistry *registry, 63 const gchar *label); 64 EComposerHeader * 65 e_composer_text_header_new_button 66 (ESourceRegistry *registry, 67 const gchar *label); 68 const gchar * e_composer_text_header_get_text (EComposerTextHeader *header); 69 void e_composer_text_header_set_text (EComposerTextHeader *header, 70 const gchar *text); 71 72 G_END_DECLS 73 74 #endif /* E_COMPOSER_TEXT_HEADER_H */ 75