Mercurial > pidgin
comparison src/conversation.c @ 1815:f15d449b3167
[gaim-migrate @ 1825]
I am IRON MAN
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sun, 06 May 2001 09:20:03 +0000 |
parents | 998a6a032874 |
children | 5cb89cf24f45 |
comparison
equal
deleted
inserted
replaced
1814:4681a02d6d3e | 1815:f15d449b3167 |
---|---|
76 /*------------------------------------------------------------------------*/ | 76 /*------------------------------------------------------------------------*/ |
77 /* Helpers */ | 77 /* Helpers */ |
78 /*------------------------------------------------------------------------*/ | 78 /*------------------------------------------------------------------------*/ |
79 | 79 |
80 | 80 |
81 void gaim_setup_imhtml(GtkIMHtml *imhtml) | 81 void gaim_setup_imhtml(GtkWidget *imhtml) |
82 { | 82 { |
83 g_return_if_fail(imhtml != NULL); | |
84 g_return_if_fail(GTK_IS_IMHTML(imhtml)); | |
83 if (!(display_options & OPT_DISP_SHOW_SMILEY)) | 85 if (!(display_options & OPT_DISP_SHOW_SMILEY)) |
84 gtk_imhtml_show_smileys(GTK_IMHTML(imhtml), FALSE); | 86 gtk_imhtml_show_smileys(GTK_IMHTML(imhtml), FALSE); |
85 gtk_signal_connect(GTK_OBJECT(imhtml), "url_clicked", GTK_SIGNAL_FUNC(open_url_nw), NULL); | 87 gtk_signal_connect(GTK_OBJECT(imhtml), "url_clicked", GTK_SIGNAL_FUNC(open_url_nw), NULL); |
86 gtk_imhtml_associate_smiley(GTK_IMHTML(imhtml), "C:)", luke03_xpm); | 88 gtk_imhtml_associate_smiley(GTK_IMHTML(imhtml), "C:)", luke03_xpm); |
87 gtk_imhtml_associate_smiley(GTK_IMHTML(imhtml), "C:-)", luke03_xpm); | 89 gtk_imhtml_associate_smiley(GTK_IMHTML(imhtml), "C:-)", luke03_xpm); |
694 } else if (event->keyval == GDK_Tab) { | 696 } else if (event->keyval == GDK_Tab) { |
695 GList *ws = (c->is_chat ? chats : conversations); | 697 GList *ws = (c->is_chat ? chats : conversations); |
696 GList *cnv = g_list_nth(ws, | 698 GList *cnv = g_list_nth(ws, |
697 gtk_notebook_get_current_page( | 699 gtk_notebook_get_current_page( |
698 GTK_NOTEBOOK(notebook))); | 700 GTK_NOTEBOOK(notebook))); |
699 struct conversation *d; | 701 struct conversation *d = NULL; |
700 while (cnv) { | 702 while (cnv) { |
701 d = cnv->data; | 703 d = cnv->data; |
702 if (d->unseen) | 704 if (d->unseen) |
703 break; | 705 break; |
704 cnv = cnv->next; | 706 cnv = cnv->next; |
1333 | 1335 |
1334 if (flags & WFLAG_SYSTEM) { | 1336 if (flags & WFLAG_SYSTEM) { |
1335 if (general_options & OPT_DISP_SHOW_TIME) | 1337 if (general_options & OPT_DISP_SHOW_TIME) |
1336 g_snprintf(buf, BUF_LONG, "<FONT SIZE=\"2\">(%s) </FONT><B>%s</B>", mdate, what); | 1338 g_snprintf(buf, BUF_LONG, "<FONT SIZE=\"2\">(%s) </FONT><B>%s</B>", mdate, what); |
1337 else | 1339 else |
1338 g_snprintf(buf, BUF_LONG, "<B>%s</B>", mdate, what); | 1340 g_snprintf(buf, BUF_LONG, "<B>%s</B>", what); |
1339 g_snprintf(buf2, sizeof(buf2), "<FONT SIZE=\"2\"><!--(%s) --></FONT><B>%s</B><BR>", | 1341 g_snprintf(buf2, sizeof(buf2), "<FONT SIZE=\"2\"><!--(%s) --></FONT><B>%s</B><BR>", |
1340 mdate, what); | 1342 mdate, what); |
1341 | 1343 |
1342 gtk_imhtml_append_text(GTK_IMHTML(c->text), buf2, 0); | 1344 gtk_imhtml_append_text(GTK_IMHTML(c->text), buf2, 0); |
1343 | 1345 |
2056 gtk_container_add(GTK_CONTAINER(sw), text); | 2058 gtk_container_add(GTK_CONTAINER(sw), text); |
2057 GTK_LAYOUT(text)->hadjustment->step_increment = 10.0; | 2059 GTK_LAYOUT(text)->hadjustment->step_increment = 10.0; |
2058 GTK_LAYOUT(text)->vadjustment->step_increment = 10.0; | 2060 GTK_LAYOUT(text)->vadjustment->step_increment = 10.0; |
2059 if (display_options & OPT_DISP_SHOW_TIME) | 2061 if (display_options & OPT_DISP_SHOW_TIME) |
2060 gtk_imhtml_show_comments(GTK_IMHTML(text), TRUE); | 2062 gtk_imhtml_show_comments(GTK_IMHTML(text), TRUE); |
2061 gaim_setup_imhtml(GTK_IMHTML(text)); | 2063 gaim_setup_imhtml(text); |
2062 gtk_widget_show(text); | 2064 gtk_widget_show(text); |
2063 | 2065 |
2064 vbox2 = gtk_vbox_new(FALSE, 5); | 2066 vbox2 = gtk_vbox_new(FALSE, 5); |
2065 gtk_paned_pack2(GTK_PANED(paned), vbox2, FALSE, FALSE); | 2067 gtk_paned_pack2(GTK_PANED(paned), vbox2, FALSE, FALSE); |
2066 gtk_widget_show(vbox2); | 2068 gtk_widget_show(vbox2); |