Mercurial > pidgin.yaz
changeset 7066:87bfe52a4099
[gaim-migrate @ 7630]
Added gtkspell goodness to all multi-line fields in GTK+ UIs for
gaim_request_*.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 30 Sep 2003 07:57:03 +0000 |
parents | 493fe366c01f |
children | 71e0da45abe6 |
files | src/gtkrequest.c |
diffstat | 1 files changed, 20 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkrequest.c Tue Sep 30 07:50:56 2003 +0000 +++ b/src/gtkrequest.c Tue Sep 30 07:57:03 2003 +0000 @@ -23,11 +23,16 @@ #include "gtkinternal.h" #include "debug.h" +#include "prefs.h" #include "gtkrequest.h" #include "gtkutils.h" #include "stock.h" +#ifdef USE_GTKSPELL +# include <gtkspell/gtkspell.h> +#endif + typedef struct { GaimRequestType type; @@ -290,6 +295,11 @@ entry = gtk_text_view_new(); gtk_text_view_set_editable(GTK_TEXT_VIEW(entry), TRUE); +#ifdef USE_GTKSPELL + if (gaim_prefs_get_bool("/gaim/gtk/conversations/spellcheck")) + gtkspell_new_attach(GTK_TEXT_VIEW(entry), NULL, NULL); +#endif + gtk_container_add(GTK_CONTAINER(sw), entry); if (default_value != NULL) { @@ -620,6 +630,16 @@ textview = gtk_text_view_new(); gtk_text_view_set_editable(GTK_TEXT_VIEW(textview), TRUE); + +#ifdef USE_GTKSPELL + if (gaim_prefs_get_bool( + "/gaim/gtk/conversations/spellcheck")) + { + gtkspell_new_attach(GTK_TEXT_VIEW(widget), + NULL, NULL); + } +#endif + gtk_container_add(GTK_CONTAINER(widget), textview); gtk_widget_show(textview);