comparison src/buddy_chat.c @ 1780:d7cbedd1d651

[gaim-migrate @ 1790] woo. more preferences redesigns. also gtk_imhtml_clear and gaim_setup_imhtml. this is knee-toe. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 30 Apr 2001 13:12:42 +0000
parents 1e0613d9526b
children 00c753b86710
comparison
equal deleted inserted replaced
1779:0da2a831c0ae 1780:d7cbedd1d651
36 #include "prpl.h" 36 #include "prpl.h"
37 37
38 #include "pixmaps/tb_forward.xpm" 38 #include "pixmaps/tb_forward.xpm"
39 #include "pixmaps/join.xpm" 39 #include "pixmaps/join.xpm"
40 #include "pixmaps/close.xpm" 40 #include "pixmaps/close.xpm"
41
42 #include "pixmaps/luke03.xpm"
43 #include "pixmaps/oneeye.xpm"
44 #include "pixmaps/crazy4.xpm"
45 41
46 static GtkWidget *joinchat; 42 static GtkWidget *joinchat;
47 static struct gaim_connection *joinchatgc; 43 static struct gaim_connection *joinchatgc;
48 static GtkWidget *entry; 44 static GtkWidget *entry;
49 static GtkWidget *invite; 45 static GtkWidget *invite;
843 text = gtk_imhtml_new(NULL, NULL); 839 text = gtk_imhtml_new(NULL, NULL);
844 b->text = text; 840 b->text = text;
845 gtk_container_add(GTK_CONTAINER(sw), text); 841 gtk_container_add(GTK_CONTAINER(sw), text);
846 GTK_LAYOUT(text)->hadjustment->step_increment = 10.0; 842 GTK_LAYOUT(text)->hadjustment->step_increment = 10.0;
847 GTK_LAYOUT(text)->vadjustment->step_increment = 10.0; 843 GTK_LAYOUT(text)->vadjustment->step_increment = 10.0;
848 if (!(display_options & OPT_DISP_SHOW_SMILEY))
849 gtk_imhtml_show_smileys(GTK_IMHTML(text), FALSE);
850 if (display_options & OPT_DISP_SHOW_TIME) 844 if (display_options & OPT_DISP_SHOW_TIME)
851 gtk_imhtml_show_comments(GTK_IMHTML(text), TRUE); 845 gtk_imhtml_show_comments(GTK_IMHTML(text), TRUE);
852 gtk_signal_connect(GTK_OBJECT(text), "url_clicked", GTK_SIGNAL_FUNC(open_url_nw), NULL); 846 gaim_setup_imhtml(GTK_IMHTML(text));
853 gtk_imhtml_associate_smiley(GTK_IMHTML(text), "C:)", luke03_xpm);
854 gtk_imhtml_associate_smiley(GTK_IMHTML(text), "C:-)", luke03_xpm);
855 gtk_imhtml_associate_smiley(GTK_IMHTML(text), "O-)", oneeye_xpm);
856 gtk_imhtml_associate_smiley(GTK_IMHTML(text), ">:)", crazy4_xpm);
857 gtk_imhtml_associate_smiley(GTK_IMHTML(text), ">:-)", crazy4_xpm);
858 gtk_widget_show(text); 847 gtk_widget_show(text);
859 848
860 lbox = gtk_vbox_new(FALSE, 5); 849 lbox = gtk_vbox_new(FALSE, 5);
861 gtk_paned_pack2(GTK_PANED(hpaned), lbox, TRUE, TRUE); 850 gtk_paned_pack2(GTK_PANED(hpaned), lbox, TRUE, TRUE);
862 gtk_widget_show(lbox); 851 gtk_widget_show(lbox);