Mercurial > pidgin
changeset 2460:049822b93239
[gaim-migrate @ 2473]
don't turn on ispell unless you want it.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 09 Oct 2001 19:18:41 +0000 |
parents | a25223b2c29b |
children | 0edec72bc72f |
files | src/aim.c src/conversation.c |
diffstat | 2 files changed, 12 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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;
--- 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()