Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
12066:ee8312c764b1 | 12067:e859c1663a27 |
---|---|
796 GtkWidget *toolbar; | 796 GtkWidget *toolbar; |
797 GtkWidget *hbox; | 797 GtkWidget *hbox; |
798 GtkWidget *vbox2; | 798 GtkWidget *vbox2; |
799 GtkWidget *iconpref1; | 799 GtkWidget *iconpref1; |
800 GtkWidget *iconpref2; | 800 GtkWidget *iconpref2; |
801 GtkWidget *spellpref; | |
802 | 801 |
803 ret = gtk_vbox_new(FALSE, GAIM_HIG_BOX_SPACE); | 802 ret = gtk_vbox_new(FALSE, GAIM_HIG_BOX_SPACE); |
804 gtk_container_set_border_width(GTK_CONTAINER(ret), GAIM_HIG_BORDER); | 803 gtk_container_set_border_width(GTK_CONTAINER(ret), GAIM_HIG_BORDER); |
805 | 804 |
806 vbox = gaim_gtk_make_frame(ret, _("Conversations")); | 805 vbox = gaim_gtk_make_frame(ret, _("Conversations")); |
819 g_signal_connect(G_OBJECT(iconpref1), "clicked", | 818 g_signal_connect(G_OBJECT(iconpref1), "clicked", |
820 G_CALLBACK(gaim_gtk_toggle_sensitive), iconpref2); | 819 G_CALLBACK(gaim_gtk_toggle_sensitive), iconpref2); |
821 | 820 |
822 gaim_gtk_prefs_checkbox(_("_Notify buddies that you are typing to them"), | 821 gaim_gtk_prefs_checkbox(_("_Notify buddies that you are typing to them"), |
823 "/core/conversations/im/send_typing", vbox); | 822 "/core/conversations/im/send_typing", vbox); |
824 | 823 #ifdef USE_GTKSPELL |
825 spellpref = gaim_gtk_prefs_checkbox(_("_Highlight misspelled words"), | 824 gaim_gtk_prefs_checkbox(_("_Highlight misspelled words"), |
826 "/gaim/gtk/conversations/spellcheck", vbox); | 825 "/gaim/gtk/conversations/spellcheck", vbox); |
827 | 826 #endif |
828 if (!gaim_gtk_gtkspell_is_available()) | |
829 { | |
830 gboolean gtkspell_enabled = gaim_prefs_get_bool("/gaim/gtk/conversations/spellcheck"); | |
831 | |
832 gtk_widget_set_sensitive(spellpref, FALSE); | |
833 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(spellpref), FALSE); | |
834 | |
835 /* Preserve the preference. If the user had it enabled, we want it to | |
836 * stay enabled if they install gtkspell again. */ | |
837 gaim_prefs_set_bool("/gaim/gtk/conversations/spellcheck", gtkspell_enabled); | |
838 } | |
839 | 827 |
840 frame = gaim_gtk_create_imhtml(TRUE, &imhtml, &toolbar); | 828 frame = gaim_gtk_create_imhtml(TRUE, &imhtml, &toolbar); |
841 gtk_widget_set_name(imhtml, "gaim_gtkprefs_font_imhtml"); | 829 gtk_widget_set_name(imhtml, "gaim_gtkprefs_font_imhtml"); |
842 gtk_imhtml_set_whole_buffer_formatting_only(GTK_IMHTML(imhtml), TRUE); | 830 gtk_imhtml_set_whole_buffer_formatting_only(GTK_IMHTML(imhtml), TRUE); |
843 gtk_imhtml_set_format_functions(GTK_IMHTML(imhtml), | 831 gtk_imhtml_set_format_functions(GTK_IMHTML(imhtml), |