| 1 /* |
1 /** |
| |
2 * @file gtkutils.h GTK+ utility functions |
| |
3 * @ingroup gtkui |
| |
4 * |
| 2 * gaim |
5 * gaim |
| 3 * |
6 * |
| 4 * Copyright (C) 2002-2003, Christian Hammond <chipx86@gnupdate.org> |
7 * Copyright (C) 2003 Christian Hammond <chipx86@gnupdate.org> |
| 5 * |
8 * |
| 6 * This program is free software; you can redistribute it and/or modify |
9 * This program is free software; you can redistribute it and/or modify |
| 7 * it under the terms of the GNU General Public License as published by |
10 * it under the terms of the GNU General Public License as published by |
| 8 * the Free Software Foundation; either version 2 of the License, or |
11 * the Free Software Foundation; either version 2 of the License, or |
| 9 * (at your option) any later version. |
12 * (at your option) any later version. |
| 14 * GNU General Public License for more details. |
17 * GNU General Public License for more details. |
| 15 * |
18 * |
| 16 * You should have received a copy of the GNU General Public License |
19 * You should have received a copy of the GNU General Public License |
| 17 * along with this program; if not, write to the Free Software |
20 * along with this program; if not, write to the Free Software |
| 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 19 * |
|
| 20 */ |
22 */ |
| 21 #ifdef HAVE_CONFIG_H |
23 #include "internal.h" |
| 22 #include <config.h> |
24 |
| |
25 #ifndef _WIN32 |
| |
26 # include <X11/Xlib.h> |
| |
27 #else |
| |
28 # ifdef small |
| |
29 # undef small |
| |
30 # endif |
| |
31 #endif /*_WIN32*/ |
| |
32 |
| |
33 #ifdef USE_GTKSPELL |
| |
34 # include <gtkspell/gtkspell.h> |
| 23 #endif |
35 #endif |
| 24 #include <string.h> |
36 |
| 25 #ifndef _WIN32 |
|
| 26 #include <sys/time.h> |
|
| 27 #include <unistd.h> |
|
| 28 #include <gdk/gdkx.h> |
|
| 29 #include <X11/Xlib.h> |
|
| 30 #else |
|
| 31 #ifdef small |
|
| 32 #undef small |
|
| 33 #endif |
|
| 34 #endif /*_WIN32*/ |
|
| 35 #include <sys/types.h> |
|
| 36 #include <sys/stat.h> |
|
| 37 #include <stdio.h> |
|
| 38 #include <stdlib.h> |
|
| 39 #include <errno.h> |
|
| 40 #include <ctype.h> |
|
| 41 #include <gtk/gtk.h> |
|
| 42 #ifdef USE_GTKSPELL |
|
| 43 #include <gtkspell/gtkspell.h> |
|
| 44 #endif |
|
| 45 #include "gtkimhtml.h" |
|
| 46 #include <gdk/gdkkeysyms.h> |
37 #include <gdk/gdkkeysyms.h> |
| |
38 |
| |
39 #include "debug.h" |
| |
40 #include "notify.h" |
| 47 #include "prefs.h" |
41 #include "prefs.h" |
| 48 #include "prpl.h" |
42 #include "prpl.h" |
| 49 #include "gaim.h" |
43 #include "util.h" |
| |
44 |
| |
45 #include "gtkconv.h" |
| |
46 #include "gtkimhtml.h" |
| |
47 #include "gtkutils.h" |
| 50 #include "ui.h" |
48 #include "ui.h" |
| 51 #include "notify.h" |
|
| 52 |
49 |
| 53 #ifdef _WIN32 |
50 #ifdef _WIN32 |
| 54 #include "wspell.h" |
51 #include "wspell.h" |
| 55 #include "win32dep.h" |
|
| 56 #endif |
52 #endif |
| 57 |
53 |
| 58 void |
54 void |
| 59 gaim_setup_imhtml(GtkWidget *imhtml) |
55 gaim_setup_imhtml(GtkWidget *imhtml) |
| 60 { |
56 { |