Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/src/gtkprefs.c Wed Apr 28 01:36:18 2004 +0000 +++ b/src/gtkprefs.c Wed Apr 28 01:45:06 2004 +0000 @@ -719,7 +719,7 @@ imhtml = gtk_imhtml_new(NULL, NULL); gtk_imhtml_set_editable(GTK_IMHTML(imhtml), TRUE); gtk_imhtml_set_format_functions(GTK_IMHTML(imhtml), GTK_IMHTML_ALL ^ GTK_IMHTML_IMAGE); - gtk_imhtml_set_whole_buffer_formatting_only(imhtml, TRUE); + gtk_imhtml_set_whole_buffer_formatting_only(GTK_IMHTML(imhtml), TRUE); gtk_imhtml_smiley_shortcuts(GTK_IMHTML(imhtml), gaim_prefs_get_bool("/gaim/gtk/conversations/smiley_shortcuts")); @@ -731,6 +731,18 @@ gtk_imhtml_append_text(GTK_IMHTML(imhtml), "This is preview text", 0); gtk_container_add(GTK_CONTAINER(sw), imhtml); + if (gaim_prefs_get_bool("/gaim/gtk/conversations/send_bold")) + gtk_imhtml_toggle_bold(GTK_IMHTML(imhtml)); + if (gaim_prefs_get_bool("/gaim/gtk/conversations/send_italic")) + gtk_imhtml_toggle_italic(GTK_IMHTML(imhtml)); + if (gaim_prefs_get_bool("/gaim/gtk/conversations/send_underline")) + gtk_imhtml_toggle_underline(GTK_IMHTML(imhtml)); + + gtk_imhtml_font_set_size(GTK_IMHTML(imhtml), gaim_prefs_get_int("/gaim/gtk/conversations/font_size")); + gtk_imhtml_toggle_forecolor(GTK_IMHTML(imhtml), gaim_prefs_get_string("/gaim/gtk/conversations/fgcolor")); + gtk_imhtml_toggle_backcolor(GTK_IMHTML(imhtml), gaim_prefs_get_string("/gaim/gtk/conversations/bgcolor")); + gtk_imhtml_toggle_fontface(GTK_IMHTML(imhtml), gaim_prefs_get_string("/gaim/gtk/conversations/font_face")); + gtk_widget_show_all(ret); return ret; }