comparison src/dialogs.c @ 8788:262f81346c0a

[gaim-migrate @ 9550] Disable the insert image button on the create away message dialog. I also made the toolbar grab which format options it should support when it is attached to the imhtml. So you can set if the imhtml should support smileys, images, background colors, etc and THEN attach the toolbar and the buttons will still be correctly grayed out. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 24 Apr 2004 01:43:11 +0000
parents 725413cc9fb9
children ef1e60f82be0
comparison
equal deleted inserted replaced
8787:163199223fb9 8788:262f81346c0a
803 gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(sw), GTK_SHADOW_IN); 803 gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(sw), GTK_SHADOW_IN);
804 gtk_box_pack_start(GTK_BOX(vbox), sw, TRUE, TRUE, 0); 804 gtk_box_pack_start(GTK_BOX(vbox), sw, TRUE, TRUE, 0);
805 805
806 ca->text = gtk_imhtml_new(NULL, NULL); 806 ca->text = gtk_imhtml_new(NULL, NULL);
807 gtk_imhtml_set_editable(GTK_IMHTML(ca->text), TRUE); 807 gtk_imhtml_set_editable(GTK_IMHTML(ca->text), TRUE);
808 gtk_imhtml_set_format_functions(GTK_IMHTML(ca->text), GTK_IMHTML_ALL ^ GTK_IMHTML_IMAGE);
808 gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(ca->text), GTK_WRAP_WORD_CHAR); 809 gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(ca->text), GTK_WRAP_WORD_CHAR);
809 810
810 gtk_imhtml_smiley_shortcuts(GTK_IMHTML(ca->text), 811 gtk_imhtml_smiley_shortcuts(GTK_IMHTML(ca->text),
811 gaim_prefs_get_bool("/gaim/gtk/conversations/smiley_shortcuts")); 812 gaim_prefs_get_bool("/gaim/gtk/conversations/smiley_shortcuts"));
812 gtk_imhtml_html_shortcuts(GTK_IMHTML(ca->text), 813 gtk_imhtml_html_shortcuts(GTK_IMHTML(ca->text),