comparison src/gtkprefs.c @ 8836:413aad27f728

[gaim-migrate @ 9602] Added the null smiley theme and made the MSN-style font selector read (but not write) the font prefs. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Wed, 28 Apr 2004 01:45:06 +0000
parents beb7be215db3
children 831da5209d83
comparison
equal deleted inserted replaced
8835:7f38bf98e4e9 8836:413aad27f728
717 717
718 718
719 imhtml = gtk_imhtml_new(NULL, NULL); 719 imhtml = gtk_imhtml_new(NULL, NULL);
720 gtk_imhtml_set_editable(GTK_IMHTML(imhtml), TRUE); 720 gtk_imhtml_set_editable(GTK_IMHTML(imhtml), TRUE);
721 gtk_imhtml_set_format_functions(GTK_IMHTML(imhtml), GTK_IMHTML_ALL ^ GTK_IMHTML_IMAGE); 721 gtk_imhtml_set_format_functions(GTK_IMHTML(imhtml), GTK_IMHTML_ALL ^ GTK_IMHTML_IMAGE);
722 gtk_imhtml_set_whole_buffer_formatting_only(imhtml, TRUE); 722 gtk_imhtml_set_whole_buffer_formatting_only(GTK_IMHTML(imhtml), TRUE);
723 723
724 gtk_imhtml_smiley_shortcuts(GTK_IMHTML(imhtml), 724 gtk_imhtml_smiley_shortcuts(GTK_IMHTML(imhtml),
725 gaim_prefs_get_bool("/gaim/gtk/conversations/smiley_shortcuts")); 725 gaim_prefs_get_bool("/gaim/gtk/conversations/smiley_shortcuts"));
726 gtk_imhtml_html_shortcuts(GTK_IMHTML(imhtml), 726 gtk_imhtml_html_shortcuts(GTK_IMHTML(imhtml),
727 gaim_prefs_get_bool("/gaim/gtk/conversations/html_shortcuts")); 727 gaim_prefs_get_bool("/gaim/gtk/conversations/html_shortcuts"));
729 gtk_imhtmltoolbar_associate_smileys(GTK_IMHTMLTOOLBAR(toolbar), "default"); 729 gtk_imhtmltoolbar_associate_smileys(GTK_IMHTMLTOOLBAR(toolbar), "default");
730 gaim_setup_imhtml(imhtml); 730 gaim_setup_imhtml(imhtml);
731 gtk_imhtml_append_text(GTK_IMHTML(imhtml), "This is preview text", 0); 731 gtk_imhtml_append_text(GTK_IMHTML(imhtml), "This is preview text", 0);
732 gtk_container_add(GTK_CONTAINER(sw), imhtml); 732 gtk_container_add(GTK_CONTAINER(sw), imhtml);
733 733
734 if (gaim_prefs_get_bool("/gaim/gtk/conversations/send_bold"))
735 gtk_imhtml_toggle_bold(GTK_IMHTML(imhtml));
736 if (gaim_prefs_get_bool("/gaim/gtk/conversations/send_italic"))
737 gtk_imhtml_toggle_italic(GTK_IMHTML(imhtml));
738 if (gaim_prefs_get_bool("/gaim/gtk/conversations/send_underline"))
739 gtk_imhtml_toggle_underline(GTK_IMHTML(imhtml));
740
741 gtk_imhtml_font_set_size(GTK_IMHTML(imhtml), gaim_prefs_get_int("/gaim/gtk/conversations/font_size"));
742 gtk_imhtml_toggle_forecolor(GTK_IMHTML(imhtml), gaim_prefs_get_string("/gaim/gtk/conversations/fgcolor"));
743 gtk_imhtml_toggle_backcolor(GTK_IMHTML(imhtml), gaim_prefs_get_string("/gaim/gtk/conversations/bgcolor"));
744 gtk_imhtml_toggle_fontface(GTK_IMHTML(imhtml), gaim_prefs_get_string("/gaim/gtk/conversations/font_face"));
745
734 gtk_widget_show_all(ret); 746 gtk_widget_show_all(ret);
735 return ret; 747 return ret;
736 } 748 }
737 749
738 750