| 38 const char *alias = name; |
38 const char *alias = name; |
| 39 guint flags; |
39 guint flags; |
| 40 char *history; |
40 char *history; |
| 41 GaimGtkConversation *gtkconv; |
41 GaimGtkConversation *gtkconv; |
| 42 GtkIMHtmlOptions options = GTK_IMHTML_NO_COLOURS; |
42 GtkIMHtmlOptions options = GTK_IMHTML_NO_COLOURS; |
| 43 time_t tm; |
|
| 44 char day[64]; |
|
| 45 char *header; |
43 char *header; |
| 46 char *protocol; |
44 char *protocol; |
| 47 |
45 |
| 48 convtype = gaim_conversation_get_type(c); |
46 convtype = gaim_conversation_get_type(c); |
| 49 gtkconv = GAIM_GTK_CONVERSATION(c); |
47 gtkconv = GAIM_GTK_CONVERSATION(c); |
| 114 |
112 |
| 115 protocol = g_strdup(gtk_imhtml_get_protocol_name(GTK_IMHTML(gtkconv->imhtml))); |
113 protocol = g_strdup(gtk_imhtml_get_protocol_name(GTK_IMHTML(gtkconv->imhtml))); |
| 116 gtk_imhtml_set_protocol_name(GTK_IMHTML(gtkconv->imhtml), |
114 gtk_imhtml_set_protocol_name(GTK_IMHTML(gtkconv->imhtml), |
| 117 gaim_account_get_protocol_name(((GaimLog*)logs->data)->account)); |
115 gaim_account_get_protocol_name(((GaimLog*)logs->data)->account)); |
| 118 |
116 |
| 119 tm = ((GaimLog *)logs->data)->time; |
117 header = g_strdup_printf("<b>Conversation with %s on %s:</b><br>", alias, |
| 120 gaim_strftime(day, sizeof(day), "%c", localtime(&tm)); |
118 gaim_date_format_full(((GaimLog *)logs->data)->time)); |
| 121 header = g_strdup_printf("<b>Conversation with %s on %s:</b><br>", alias, day); |
|
| 122 gtk_imhtml_append_text(GTK_IMHTML(gtkconv->imhtml), header, options); |
119 gtk_imhtml_append_text(GTK_IMHTML(gtkconv->imhtml), header, options); |
| 123 g_free(header); |
120 g_free(header); |
| 124 |
121 |
| 125 gtk_imhtml_append_text(GTK_IMHTML(gtkconv->imhtml), history, options); |
122 gtk_imhtml_append_text(GTK_IMHTML(gtkconv->imhtml), history, options); |
| 126 g_free(history); |
123 g_free(history); |