Mercurial > pidgin.yaz
diff src/gtkrequest.c @ 7538:357eb1c39b72
[gaim-migrate @ 8151]
Robot101 made a nice patch (which I modified just slightly) to put our
gtkspell attachment function that we use all throughout gaim into a utility
function, which handles error checking and only does anything if gtkspell
support is compiled in. It lets us remove a lot of #ifdef USE_GTKSPELL from
places, and doesn't change any functionality.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Mon, 17 Nov 2003 06:48:01 +0000 |
parents | 7c320cdc0f3a |
children | cf6a7939af78 |
line wrap: on
line diff
--- a/src/gtkrequest.c Mon Nov 17 06:44:05 2003 +0000 +++ b/src/gtkrequest.c Mon Nov 17 06:48:01 2003 +0000 @@ -30,13 +30,6 @@ #include "stock.h" #include "ui.h" -#ifdef USE_GTKSPELL -# include <gtkspell/gtkspell.h> -# ifdef _WIN32 -# include "wspell.h" -# endif -#endif - typedef struct { GaimRequestType type; @@ -307,10 +300,8 @@ gtk_text_view_set_editable(GTK_TEXT_VIEW(entry), TRUE); gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(entry), GTK_WRAP_WORD_CHAR); -#ifdef USE_GTKSPELL if (gaim_prefs_get_bool("/gaim/gtk/conversations/spellcheck")) - gtkspell_new_attach(GTK_TEXT_VIEW(entry), NULL, NULL); -#endif + gaim_gtk_setup_gtkspell(GTK_TEXT_VIEW(entry)); gtk_container_add(GTK_CONTAINER(sw), entry); @@ -648,14 +639,11 @@ gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(textview), GTK_WRAP_WORD_CHAR); -#ifdef USE_GTKSPELL if (gaim_prefs_get_bool( "/gaim/gtk/conversations/spellcheck")) { - gtkspell_new_attach(GTK_TEXT_VIEW(textview), - NULL, NULL); + gaim_gtk_setup_gtkspell(GTK_TEXT_VIEW(textview)); } -#endif gtk_container_add(GTK_CONTAINER(widget), textview); gtk_widget_show(textview);