1 /* 2 * @file libsexy/sexy-icon-entry.h Entry widget 3 * 4 * @Copyright (C) 2004-2006 Christian Hammond. 5 * Some of this code is from gtkspell, Copyright (C) 2002 Evan Martin. 6 * Adapted for Claws Mail (c) 2009-2012 Pawel Pekala and the Claws Mail team 7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 3 of the License, or 11 * (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program. If not, see <http://www.gnu.org/licenses/>. 20 * 21 */ 22 23 #ifndef __SPELL_ENTRY_H__ 24 #define __SPELL_ENTRY_H__ 25 26 #ifdef HAVE_CONFIG_H 27 #include "claws-features.h" 28 #endif 29 30 #ifdef USE_ENCHANT 31 32 G_BEGIN_DECLS 33 34 typedef struct _ClawsSpellEntry ClawsSpellEntry; 35 typedef struct _ClawsSpellEntryClass ClawsSpellEntryClass; 36 37 #include <gtk/gtk.h> 38 #include "gtkaspell.h" 39 40 #define CLAWS_TYPE_SPELL_ENTRY (claws_spell_entry_get_type()) 41 #define CLAWS_SPELL_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), CLAWS_TYPE_SPELL_ENTRY, ClawsSpellEntry)) 42 #define CLAWS_SPELL_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), CLAWS_TYPE_SPELL_ENTRY, ClawsSpellEntryClass)) 43 #define CLAWS_IS_SPELL_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), CLAWS_TYPE_SPELL_ENTRY)) 44 45 struct _ClawsSpellEntry 46 { 47 GtkEntry parent_object; 48 49 GtkAspell *gtkaspell; 50 51 void (*gtk_reserved1)(void); 52 void (*gtk_reserved2)(void); 53 void (*gtk_reserved3)(void); 54 void (*gtk_reserved4)(void); 55 }; 56 57 struct _ClawsSpellEntryClass 58 { 59 GtkEntryClass parent_class; 60 61 void (*gtk_reserved1)(void); 62 void (*gtk_reserved2)(void); 63 void (*gtk_reserved3)(void); 64 void (*gtk_reserved4)(void); 65 }; 66 67 GType claws_spell_entry_get_type (void); 68 GtkWidget * claws_spell_entry_new (void); 69 void claws_spell_entry_set_gtkaspell (ClawsSpellEntry *entry, 70 GtkAspell *gtkaspell); 71 void claws_spell_entry_recheck_all (ClawsSpellEntry *entry); 72 void claws_spell_entry_check_all (ClawsSpellEntry *entry); 73 void claws_spell_entry_context_set (ClawsSpellEntry *entry); 74 void claws_spell_entry_check_backwards (ClawsSpellEntry *entry); 75 void claws_spell_entry_check_forwards_go (ClawsSpellEntry *entry); 76 77 78 G_END_DECLS 79 80 #endif /* USE_ENCHANT */ 81 #endif /* __SPELL_ENTRY_H__ */ 82