Mercurial > pidgin
diff src/gtkprefs.c @ 12067:e859c1663a27
[gaim-migrate @ 14362]
Revert GtkSpell dynamic loading. A GtkSpell plugin is a better idea, and nosnilmot says he has one that's close to fully functional.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sun, 13 Nov 2005 01:44:11 +0000 |
parents | 29dc8fc0dd6c |
children | e75ef7aa913e |
line wrap: on
line diff
--- a/src/gtkprefs.c Sun Nov 13 01:32:31 2005 +0000 +++ b/src/gtkprefs.c Sun Nov 13 01:44:11 2005 +0000 @@ -798,7 +798,6 @@ GtkWidget *vbox2; GtkWidget *iconpref1; GtkWidget *iconpref2; - GtkWidget *spellpref; ret = gtk_vbox_new(FALSE, GAIM_HIG_BOX_SPACE); gtk_container_set_border_width(GTK_CONTAINER(ret), GAIM_HIG_BORDER); @@ -821,21 +820,10 @@ gaim_gtk_prefs_checkbox(_("_Notify buddies that you are typing to them"), "/core/conversations/im/send_typing", vbox); - - spellpref = gaim_gtk_prefs_checkbox(_("_Highlight misspelled words"), - "/gaim/gtk/conversations/spellcheck", vbox); - - if (!gaim_gtk_gtkspell_is_available()) - { - gboolean gtkspell_enabled = gaim_prefs_get_bool("/gaim/gtk/conversations/spellcheck"); - - gtk_widget_set_sensitive(spellpref, FALSE); - gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(spellpref), FALSE); - - /* Preserve the preference. If the user had it enabled, we want it to - * stay enabled if they install gtkspell again. */ - gaim_prefs_set_bool("/gaim/gtk/conversations/spellcheck", gtkspell_enabled); - } +#ifdef USE_GTKSPELL + gaim_gtk_prefs_checkbox(_("_Highlight misspelled words"), + "/gaim/gtk/conversations/spellcheck", vbox); +#endif frame = gaim_gtk_create_imhtml(TRUE, &imhtml, &toolbar); gtk_widget_set_name(imhtml, "gaim_gtkprefs_font_imhtml");