comparison pidgin/gtkprefs.c @ 18043:6b7b13adb9b1

propagate from branch 'im.pidgin.pidgin' (head ac83216c7b78e652b47f1fd0bcb91f1eaf2cdf36) to branch 'im.pidgin.pidgin.2.1.0' (head 30a48520e9bc26b0d3914edad456b063cd6cf9fe)
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Mon, 04 Jun 2007 23:48:54 +0000
parents fbebe15c91a7 f78b5aee202d
children 74842d0ac1a7
comparison
equal deleted inserted replaced
18036:ee9f7ee0be66 18043:6b7b13adb9b1
977 977
978 gtk_imhtml_append_text(GTK_IMHTML(imhtml), _("This is how your outgoing message text will appear when you use protocols that support formatting. :)"), 0); 978 gtk_imhtml_append_text(GTK_IMHTML(imhtml), _("This is how your outgoing message text will appear when you use protocols that support formatting. :)"), 0);
979 979
980 gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 0); 980 gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 0);
981 981
982 if (purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/conversations/send_bold")) 982 gtk_imhtml_setup_entry(GTK_IMHTML(imhtml), PURPLE_CONNECTION_HTML | PURPLE_CONNECTION_FORMATTING_WBFO);
983 gtk_imhtml_toggle_bold(GTK_IMHTML(imhtml));
984 if (purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/conversations/send_italic"))
985 gtk_imhtml_toggle_italic(GTK_IMHTML(imhtml));
986 if (purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/conversations/send_underline"))
987 gtk_imhtml_toggle_underline(GTK_IMHTML(imhtml));
988
989 gtk_imhtml_font_set_size(GTK_IMHTML(imhtml), purple_prefs_get_int(PIDGIN_PREFS_ROOT "/conversations/font_size"));
990 gtk_imhtml_toggle_forecolor(GTK_IMHTML(imhtml), purple_prefs_get_string(PIDGIN_PREFS_ROOT "/conversations/fgcolor"));
991 gtk_imhtml_toggle_background(GTK_IMHTML(imhtml), purple_prefs_get_string(PIDGIN_PREFS_ROOT "/conversations/bgcolor"));
992 gtk_imhtml_toggle_fontface(GTK_IMHTML(imhtml), purple_prefs_get_string(PIDGIN_PREFS_ROOT "/conversations/font_face"));
993 983
994 g_signal_connect_after(G_OBJECT(imhtml), "format_function_toggle", 984 g_signal_connect_after(G_OBJECT(imhtml), "format_function_toggle",
995 G_CALLBACK(formatting_toggle_cb), toolbar); 985 G_CALLBACK(formatting_toggle_cb), toolbar);
996 g_signal_connect_after(G_OBJECT(imhtml), "format_function_clear", 986 g_signal_connect_after(G_OBJECT(imhtml), "format_function_clear",
997 G_CALLBACK(formatting_clear_cb), NULL); 987 G_CALLBACK(formatting_clear_cb), NULL);