Mercurial > pidgin
comparison src/gtkutils.c @ 12651:a74cb5952db4
[gaim-migrate @ 14992]
Activate a GtkSpell on the status box. If your message contains a word
that GtkSpell doesn't recognize then it will have red squiggles underneath
it FOREVER. Is that going to annoy people?
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 25 Dec 2005 01:36:31 +0000 |
parents | 3169cd6727ad |
children | ee0c8c446eef |
comparison
equal
deleted
inserted
replaced
12650:2926e3c3185e | 12651:a74cb5952db4 |
---|---|
144 | 144 |
145 imhtml = gtk_imhtml_new(NULL, NULL); | 145 imhtml = gtk_imhtml_new(NULL, NULL); |
146 gtk_imhtml_set_editable(GTK_IMHTML(imhtml), editable); | 146 gtk_imhtml_set_editable(GTK_IMHTML(imhtml), editable); |
147 gtk_imhtml_set_format_functions(GTK_IMHTML(imhtml), GTK_IMHTML_ALL ^ GTK_IMHTML_IMAGE); | 147 gtk_imhtml_set_format_functions(GTK_IMHTML(imhtml), GTK_IMHTML_ALL ^ GTK_IMHTML_IMAGE); |
148 gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(imhtml), GTK_WRAP_WORD_CHAR); | 148 gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(imhtml), GTK_WRAP_WORD_CHAR); |
149 #ifdef USE_GTKSPELL | |
149 if (editable && gaim_prefs_get_bool("/gaim/gtk/conversations/spellcheck")) | 150 if (editable && gaim_prefs_get_bool("/gaim/gtk/conversations/spellcheck")) |
150 gaim_gtk_setup_gtkspell(GTK_TEXT_VIEW(imhtml)); | 151 gaim_gtk_setup_gtkspell(GTK_TEXT_VIEW(imhtml)); |
152 #endif | |
151 gtk_widget_show(imhtml); | 153 gtk_widget_show(imhtml); |
152 | 154 |
153 if (editable) { | 155 if (editable) { |
154 gtk_imhtmltoolbar_attach(GTK_IMHTMLTOOLBAR(toolbar), imhtml); | 156 gtk_imhtmltoolbar_attach(GTK_IMHTMLTOOLBAR(toolbar), imhtml); |
155 gtk_imhtmltoolbar_associate_smileys(GTK_IMHTMLTOOLBAR(toolbar), "default"); | 157 gtk_imhtmltoolbar_associate_smileys(GTK_IMHTMLTOOLBAR(toolbar), "default"); |