comparison src/gtkprefs.c @ 11275:ffc86d9ad8b7

[gaim-migrate @ 13461] Make the new clear formatting button work. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Mon, 15 Aug 2005 19:46:32 +0000
parents b33eccbc3a10
children fb6e85c55fb8
comparison
equal deleted inserted replaced
11274:67a929d50cfe 11275:ffc86d9ad8b7
816 gaim_prefs_set_string("/gaim/gtk/conversations/bgcolor", color); 816 gaim_prefs_set_string("/gaim/gtk/conversations/bgcolor", color);
817 g_free(color); 817 g_free(color);
818 } 818 }
819 } 819 }
820 820
821 static void
822 formatting_clear_cb(GtkIMHtml *imhtml, void *data)
823 {
824 gaim_prefs_set_bool("/gaim/gtk/conversations/send_bold", FALSE);
825 gaim_prefs_set_bool("/gaim/gtk/conversations/send_italic", FALSE);
826 gaim_prefs_set_bool("/gaim/gtk/conversations/send_underline", FALSE);
827
828 gaim_prefs_set_int("/gaim/gtk/conversations/font_size", 3);
829
830 gaim_prefs_set_string("/gaim/gtk/conversations/font_face", "");
831 gaim_prefs_set_string("/gaim/gtk/conversations/fgcolor", "");
832 gaim_prefs_set_string("/gaim/gtk/conversations/bgcolor", "");
833 }
834
821 static GtkWidget * 835 static GtkWidget *
822 list_page() 836 list_page()
823 { 837 {
824 GtkWidget *ret; 838 GtkWidget *ret;
825 GtkWidget *vbox; 839 GtkWidget *vbox;
927 gtk_imhtml_toggle_background(GTK_IMHTML(imhtml), gaim_prefs_get_string("/gaim/gtk/conversations/bgcolor")); 941 gtk_imhtml_toggle_background(GTK_IMHTML(imhtml), gaim_prefs_get_string("/gaim/gtk/conversations/bgcolor"));
928 gtk_imhtml_toggle_fontface(GTK_IMHTML(imhtml), gaim_prefs_get_string("/gaim/gtk/conversations/font_face")); 942 gtk_imhtml_toggle_fontface(GTK_IMHTML(imhtml), gaim_prefs_get_string("/gaim/gtk/conversations/font_face"));
929 943
930 g_signal_connect_after(G_OBJECT(imhtml), "format_function_toggle", 944 g_signal_connect_after(G_OBJECT(imhtml), "format_function_toggle",
931 G_CALLBACK(formatting_toggle_cb), toolbar); 945 G_CALLBACK(formatting_toggle_cb), toolbar);
932 946 g_signal_connect_after(G_OBJECT(imhtml), "format_function_clear",
947 G_CALLBACK(formatting_clear_cb), NULL);
933 948
934 /* All the tab options! */ 949 /* All the tab options! */
935 vbox = gaim_gtk_make_frame(ret, _("Tab Options")); 950 vbox = gaim_gtk_make_frame(ret, _("Tab Options"));
936 951
937 gaim_gtk_prefs_checkbox(_("Show IMs and chats in _tabbed windows"), 952 gaim_gtk_prefs_checkbox(_("Show IMs and chats in _tabbed windows"),