Mercurial > pidgin.yaz
comparison pidgin/gtkprefs.c @ 17517:274ceb453176
Allow formatted text in the pounce dialog. Also, use the same code to
initialize the formatting in the pounce, pref and conversation windows.
This closes #1088.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 25 May 2007 22:04:18 +0000 |
parents | d8102e923bd1 |
children | a50f0188896b |
comparison
equal
deleted
inserted
replaced
17516:8fe927fa0220 | 17517:274ceb453176 |
---|---|
940 | 940 |
941 gtk_imhtml_append_text(GTK_IMHTML(imhtml), _("This is how your outgoing message text will appear when you use protocols that support formatting. :)"), 0); | 941 gtk_imhtml_append_text(GTK_IMHTML(imhtml), _("This is how your outgoing message text will appear when you use protocols that support formatting. :)"), 0); |
942 | 942 |
943 gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 0); | 943 gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 0); |
944 | 944 |
945 if (purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/conversations/send_bold")) | 945 gtk_imhtml_setup_entry(GTK_IMHTML(imhtml), PURPLE_CONNECTION_HTML | PURPLE_CONNECTION_FORMATTING_WBFO); |
946 gtk_imhtml_toggle_bold(GTK_IMHTML(imhtml)); | |
947 if (purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/conversations/send_italic")) | |
948 gtk_imhtml_toggle_italic(GTK_IMHTML(imhtml)); | |
949 if (purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/conversations/send_underline")) | |
950 gtk_imhtml_toggle_underline(GTK_IMHTML(imhtml)); | |
951 | |
952 gtk_imhtml_font_set_size(GTK_IMHTML(imhtml), purple_prefs_get_int(PIDGIN_PREFS_ROOT "/conversations/font_size")); | |
953 gtk_imhtml_toggle_forecolor(GTK_IMHTML(imhtml), purple_prefs_get_string(PIDGIN_PREFS_ROOT "/conversations/fgcolor")); | |
954 gtk_imhtml_toggle_background(GTK_IMHTML(imhtml), purple_prefs_get_string(PIDGIN_PREFS_ROOT "/conversations/bgcolor")); | |
955 gtk_imhtml_toggle_fontface(GTK_IMHTML(imhtml), purple_prefs_get_string(PIDGIN_PREFS_ROOT "/conversations/font_face")); | |
956 | 946 |
957 g_signal_connect_after(G_OBJECT(imhtml), "format_function_toggle", | 947 g_signal_connect_after(G_OBJECT(imhtml), "format_function_toggle", |
958 G_CALLBACK(formatting_toggle_cb), toolbar); | 948 G_CALLBACK(formatting_toggle_cb), toolbar); |
959 g_signal_connect_after(G_OBJECT(imhtml), "format_function_clear", | 949 g_signal_connect_after(G_OBJECT(imhtml), "format_function_clear", |
960 G_CALLBACK(formatting_clear_cb), NULL); | 950 G_CALLBACK(formatting_clear_cb), NULL); |