# HG changeset patch # User Eric Warmenhoven # Date 1002655121 0 # Node ID 049822b9323911f5c9f6efcf2722ab8fbc79b5e0 # Parent a25223b2c29bd60c0c9fc64f80580753d11a372c [gaim-migrate @ 2473] don't turn on ispell unless you want it. committer: Tailor Script diff -r a25223b2c29b -r 049822b93239 src/aim.c --- a/src/aim.c Tue Oct 09 19:15:13 2001 +0000 +++ b/src/aim.c Tue Oct 09 19:18:41 2001 +0000 @@ -636,7 +636,8 @@ if (misc_options & OPT_MISC_DEBUG) show_debug(); - gtkspell_start(NULL, ispell_cmd); + if (convo_options & OPT_CONVO_CHECK_SPELLING) + gtkspell_start(NULL, ispell_cmd); #ifdef USE_PERL perl_autoload(); #endif @@ -681,7 +682,8 @@ #endif /* USE_APPLET */ - gtkspell_stop(); + if (convo_options & OPT_CONVO_CHECK_SPELLING) + gtkspell_stop(); core_quit(); return 0; diff -r a25223b2c29b -r 049822b93239 src/conversation.c --- a/src/conversation.c Tue Oct 09 19:15:13 2001 +0000 +++ b/src/conversation.c Tue Oct 09 19:18:41 2001 +0000 @@ -60,6 +60,8 @@ #include "pixmaps/mrt.xpm" #include "pixmaps/download.xpm" +static gchar *ispell_cmd[] = { "ispell", "-a", NULL }; + int state_lock = 0; GdkPixmap *dark_icon_pm = NULL; @@ -2323,6 +2325,9 @@ GSList *con = connections; struct gaim_connection *gc; + if (convo_options & OPT_CONVO_CHECK_SPELLING) + gtkspell_start(NULL, ispell_cmd); + while (cnv) { c = (struct conversation *)cnv->data; if (convo_options & OPT_CONVO_CHECK_SPELLING) @@ -2345,6 +2350,9 @@ } con = con->next; } + + if (!(convo_options & OPT_CONVO_CHECK_SPELLING)) + gtkspell_stop(); } void toggle_timestamps()