pidgin/gtkconv.c

changeset 33357
3703a6de528a
parent 33284
e3155594ea98
child 33379
76c445e2ab94
child 33501
c224f6403237
equal deleted inserted replaced
33352:fe562503e212 33357:3703a6de528a
29 #include "internal.h" 29 #include "internal.h"
30 #include "pidgin.h" 30 #include "pidgin.h"
31 31
32 #ifndef _WIN32 32 #ifndef _WIN32
33 # include <X11/Xlib.h> 33 # include <X11/Xlib.h>
34 #endif
35
36 #ifdef USE_GTKSPELL
37 # include <gtkspell/gtkspell.h>
38 # ifdef _WIN32
39 # include "wspell.h"
40 # endif
41 #endif 34 #endif
42 35
43 #include <gdk/gdkkeysyms.h> 36 #include <gdk/gdkkeysyms.h>
44 37
45 #include "account.h" 38 #include "account.h"
7885 7878
7886 static void 7879 static void
7887 spellcheck_pref_cb(const char *name, PurplePrefType type, 7880 spellcheck_pref_cb(const char *name, PurplePrefType type,
7888 gconstpointer value, gpointer data) 7881 gconstpointer value, gpointer data)
7889 { 7882 {
7890 #ifdef USE_GTKSPELL
7891 GList *cl; 7883 GList *cl;
7892 PurpleConversation *conv; 7884 PurpleConversation *conv;
7893 PidginConversation *gtkconv; 7885 PidginConversation *gtkconv;
7894 7886
7895 for (cl = purple_get_conversations(); cl != NULL; cl = cl->next) { 7887 for (cl = purple_get_conversations(); cl != NULL; cl = cl->next) {
7899 if (!PIDGIN_IS_PIDGIN_CONVERSATION(conv)) 7891 if (!PIDGIN_IS_PIDGIN_CONVERSATION(conv))
7900 continue; 7892 continue;
7901 7893
7902 gtkconv = PIDGIN_CONVERSATION(conv); 7894 gtkconv = PIDGIN_CONVERSATION(conv);
7903 7895
7904 pidgin_webview_set_spellcheck(GTK_WEBVIEW(gtkconv->entry), value); 7896 pidgin_webview_set_spellcheck(GTK_WEBVIEW(gtkconv->entry),
7905 } 7897 (gboolean)GPOINTER_TO_INT(value));
7906 #endif 7898 }
7907 } 7899 }
7908 7900
7909 static void 7901 static void
7910 tab_side_pref_cb(const char *name, PurplePrefType type, 7902 tab_side_pref_cb(const char *name, PurplePrefType type,
7911 gconstpointer value, gpointer data) 7903 gconstpointer value, gpointer data)

mercurial