1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ 2 /* 3 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU Lesser General Public License as published by 7 * the Free Software Foundation. 8 * 9 * This program is distributed in the hope that it will be useful, but 10 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 11 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public License 15 * along with this program; if not, see <http://www.gnu.org/licenses/>. 16 */ 17 18 #if !defined (__E_UTIL_H_INSIDE__) && !defined (LIBEUTIL_COMPILATION) 19 #error "Only <e-util/e-util.h> should be included directly." 20 #endif 21 22 #ifndef E_CATEGORIES_EDITOR_H 23 #define E_CATEGORIES_EDITOR_H 24 25 #include <gtk/gtk.h> 26 27 /* Standard GObject macros */ 28 #define E_TYPE_CATEGORIES_EDITOR \ 29 (e_categories_editor_get_type ()) 30 #define E_CATEGORIES_EDITOR(obj) \ 31 (G_TYPE_CHECK_INSTANCE_CAST \ 32 ((obj), E_TYPE_CATEGORIES_EDITOR, ECategoriesEditor)) 33 #define E_CATEGORIES_EDITOR_CLASS(cls) \ 34 (G_TYPE_CHECK_CLASS_CAST \ 35 ((cls), E_TYPE_CATEGORIES_EDITOR, ECategoriesEditorClass)) 36 #define E_IS_CATEGORIES_EDITOR(obj) \ 37 (G_TYPE_CHECK_INSTANCE_TYPE \ 38 ((obj), E_TYPE_CATEGORIES_EDITOR)) 39 #define E_IS_CATEGORIES_EDITOR_CLASS(cls) \ 40 (G_TYPE_CHECK_CLASS_TYPE \ 41 ((cls), E_TYPE_CATEGORIES_EDITOR)) 42 #define E_CATEGORIES_EDITOR_GET_CLASS(obj) \ 43 (G_TYPE_INSTANCE_GET_CLASS \ 44 ((obj), E_TYPE_CATEGORIES_EDITOR, ECategoriesEditorClass)) 45 46 G_BEGIN_DECLS 47 48 typedef struct _ECategoriesEditor ECategoriesEditor; 49 typedef struct _ECategoriesEditorClass ECategoriesEditorClass; 50 typedef struct _ECategoriesEditorPrivate ECategoriesEditorPrivate; 51 52 /** 53 * ECategoriesEditor: 54 * 55 * Contains only private data that should be read and manipulated using the 56 * functions below. 57 * 58 * Since: 3.2 59 **/ 60 struct _ECategoriesEditor { 61 GtkGrid parent; 62 ECategoriesEditorPrivate *priv; 63 }; 64 65 struct _ECategoriesEditorClass { 66 GtkGridClass parent_class; 67 68 void (*entry_changed) (GtkEntry *entry); 69 }; 70 71 GType e_categories_editor_get_type (void) G_GNUC_CONST; 72 GtkWidget * e_categories_editor_new (void); 73 gchar * e_categories_editor_get_categories 74 (ECategoriesEditor *editor); 75 void e_categories_editor_set_categories 76 (ECategoriesEditor *editor, 77 const gchar *categories); 78 gboolean e_categories_editor_get_entry_visible 79 (ECategoriesEditor *editor); 80 void e_categories_editor_set_entry_visible 81 (ECategoriesEditor *editor, 82 gboolean entry_visible); 83 84 G_END_DECLS 85 86 #endif /* E_CATEGORIES_EDITOR_H */ 87