add gtkspell source files from stuphead + GtkText compatibility header
[claws.git] / src / gtkxtext.h
1 /*
2  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3  * Copyright (C) 2001 Hiroyuki Yamamoto & The Sylpheed Claws Team
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18  */
19
20 #ifndef GTKXTEXT_H__
21 #define GTKXTEXT_H__
22
23 #include "config.h"
24
25 #ifdef CLAWS
26
27 #include "gtkstext.h"
28
29 typedef GtkSText GtkXText;
30
31 #define GTK_IS_XTEXT(obj)       GTK_IS_STEXT(obj)
32 #define GTK_XTEXT(obj)          GTK_STEXT(obj)
33
34 #define gtk_xtext_get_type      gtk_stext_get_type
35 #define gtk_xtext_new           gtk_stext_new
36 #define gtk_xtext_set_editable  gtk_stext_set_editable
37 #define gtk_xtext_set_word_wrap gtk_stext_set_word_wrap
38 #define gtk_xtext_set_line_wrap gtk_stext_set_line_wrap
39 #define gtk_xtext_set_adjustments       gtk_stext_set_adjustments
40 #define gtk_xtext_set_point     gtk_stext_set_point
41 #define gtk_xtext_get_point     gtk_stext_get_point
42 #define gtk_xtext_get_length    gtk_stext_get_length
43 #define gtk_xtext_freeze        gtk_stext_freeze
44 #define gtk_xtext_thaw          gtk_stext_thaw
45 #define gtk_xtext_insert        gtk_stext_insert
46 #define gtk_xtext_backward_delete       gtk_stext_backward_delete
47 #define gtk_xtext_forward_delete        gtk_stext_forward_delete
48
49 #define GTK_XTEXT_INDEX         GTK_STEXT_INDEX
50
51 #else
52
53 #include <gtk/gtktext.h>
54
55 typedef GtkText  GtkXText;
56
57 #define GTK_IS_XTEXT(obj)       GTK_IS_TEXT(obj)
58 #define GTK_XTEXT(obj)          GTK_TEXT(obj)
59
60 #define gtk_xtext_get_type      gtk_text_get_type
61 #define gtk_xtext_new           gtk_text_new
62 #define gtk_xtext_set_editable  gtk_text_set_editable
63 #define gtk_xtext_set_word_wrap gtk_text_set_word_wrap
64 #define gtk_xtext_set_line_wrap gtk_text_set_line_wrap
65 #define gtk_xtext_set_adjustments       gtk_text_set_adjustments
66 #define gtk_xtext_set_point     gtk_text_set_point
67 #define gtk_xtext_get_point     gtk_text_get_point
68 #define gtk_xtext_get_length    gtk_text_get_length
69 #define gtk_xtext_freeze        gtk_text_freeze
70 #define gtk_xtext_thaw          gtk_text_thaw
71 #define gtk_xtext_insert        gtk_text_insert
72 #define gtk_xtext_backward_delete       gtk_text_backward_delete
73 #define gtk_xtext_forward_delete        gtk_text_forward_delete
74
75 #define GTK_XTEXT_INDEX         GTK_TEXT_INDEX
76
77 #endif /* !CLAWS */
78
79
80 #endif /* GTKXTEXT_H__ */
81