Mercurial > pidgin.yaz
comparison src/buddy_chat.c @ 1428:00b3d02a2168
[gaim-migrate @ 1438]
gtkhtml has gotten replaced by gtkimhtml.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 26 Jan 2001 02:02:36 +0000 |
parents | f6b0cf1f4c3b |
children | 5c67b8794991 |
comparison
equal
deleted
inserted
replaced
1427:28278bd61403 | 1428:00b3d02a2168 |
---|---|
26 #include <sys/time.h> | 26 #include <sys/time.h> |
27 #include <unistd.h> | 27 #include <unistd.h> |
28 #include <stdio.h> | 28 #include <stdio.h> |
29 #include <stdlib.h> | 29 #include <stdlib.h> |
30 #include <gtk/gtk.h> | 30 #include <gtk/gtk.h> |
31 #include "gtkhtml.h" | 31 #include "gtkimhtml.h" |
32 #include "gtkspell.h" | 32 #include "gtkspell.h" |
33 #include <gdk/gdkkeysyms.h> | 33 #include <gdk/gdkkeysyms.h> |
34 | 34 |
35 #include "convo.h" | 35 #include "convo.h" |
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" | |
41 | 44 |
42 static GtkWidget *joinchat; | 45 static GtkWidget *joinchat; |
43 static struct gaim_connection *joinchatgc; | 46 static struct gaim_connection *joinchatgc; |
44 static GtkWidget *entry; | 47 static GtkWidget *entry; |
45 static GtkWidget *invite; | 48 static GtkWidget *invite; |
694 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); | 697 gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(sw), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS); |
695 gtk_paned_pack1(GTK_PANED(hpaned), sw, TRUE, TRUE); | 698 gtk_paned_pack1(GTK_PANED(hpaned), sw, TRUE, TRUE); |
696 gtk_widget_set_usize(sw, 320, 160); | 699 gtk_widget_set_usize(sw, 320, 160); |
697 gtk_widget_show(sw); | 700 gtk_widget_show(sw); |
698 | 701 |
699 text = gtk_html_new(NULL, NULL); | 702 text = gtk_imhtml_new(NULL, NULL); |
700 b->text = text; | 703 b->text = text; |
701 gtk_container_add(GTK_CONTAINER(sw), text); | 704 gtk_container_add(GTK_CONTAINER(sw), text); |
705 GTK_LAYOUT(text)->hadjustment->step_increment = 10.0; | |
706 GTK_LAYOUT(text)->vadjustment->step_increment = 10.0; | |
707 if (!(display_options & OPT_DISP_SHOW_SMILEY)) | |
708 gtk_imhtml_show_smileys(GTK_IMHTML(text), FALSE); | |
709 if (display_options & OPT_DISP_SHOW_TIME) | |
710 gtk_imhtml_show_comments(GTK_IMHTML(text), TRUE); | |
711 gtk_signal_connect(GTK_OBJECT(text), "url_clicked", GTK_SIGNAL_FUNC(open_url_nw), NULL); | |
712 gtk_imhtml_associate_smiley(GTK_IMHTML(text), "C:)", luke03_xpm); | |
713 gtk_imhtml_associate_smiley(GTK_IMHTML(text), "C:-)", luke03_xpm); | |
714 gtk_imhtml_associate_smiley(GTK_IMHTML(text), "O-)", oneeye_xpm); | |
702 gtk_widget_show(text); | 715 gtk_widget_show(text); |
703 GTK_HTML(text)->hadj->step_increment = 10.0; | |
704 GTK_HTML(text)->vadj->step_increment = 10.0; | |
705 | 716 |
706 lbox = gtk_vbox_new(FALSE, 5); | 717 lbox = gtk_vbox_new(FALSE, 5); |
707 gtk_paned_pack2(GTK_PANED(hpaned), lbox, TRUE, TRUE); | 718 gtk_paned_pack2(GTK_PANED(hpaned), lbox, TRUE, TRUE); |
708 gtk_widget_show(lbox); | 719 gtk_widget_show(lbox); |
709 | 720 |