Mercurial > pidgin.yaz
comparison src/buddy_chat.c @ 373:1d29321843b0
[gaim-migrate @ 383]
raise chat windows and log chat
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 10 Jun 2000 00:48:43 +0000 |
parents | 8c3b075d7aba |
children | 1eae69f076d2 |
comparison
equal
deleted
inserted
replaced
372:8c3b075d7aba | 373:1d29321843b0 |
---|---|
304 gtk_html_append_text(GTK_HTML(b->text), message, (display_options & OPT_DISP_IGNORE_COLOUR) ? HTML_OPTION_NO_COLOURS : 0); | 304 gtk_html_append_text(GTK_HTML(b->text), message, (display_options & OPT_DISP_IGNORE_COLOUR) ? HTML_OPTION_NO_COLOURS : 0); |
305 gtk_html_append_text(GTK_HTML(b->text), "<BR>", 0); | 305 gtk_html_append_text(GTK_HTML(b->text), "<BR>", 0); |
306 | 306 |
307 gtk_html_thaw(GTK_HTML(b->text)); | 307 gtk_html_thaw(GTK_HTML(b->text)); |
308 | 308 |
309 if (general_options & OPT_GEN_POPUP_CHAT) | |
310 gdk_window_show(b->window->window); | |
311 | |
312 if ((general_options & OPT_GEN_LOG_ALL) || find_log_info(b->name)) { | |
313 char *t1; | |
314 FILE *fd; | |
315 | |
316 t1 = g_malloc(256); | |
317 snprintf(t1, 256, "%s.chat", b->name); | |
318 fd = open_log_file(t1); | |
319 g_free(t1); | |
320 if (general_options & OPT_GEN_STRIP_HTML) { | |
321 t1 = strip_html(message); | |
322 if (display_options & OPT_DISP_SHOW_TIME) | |
323 fprintf(fd, "%s %s %s\n", date(), str, t1); | |
324 else | |
325 fprintf(fd, "%s %s\n", str, t1); | |
326 g_free(t1); | |
327 } else { | |
328 if (display_options & OPT_DISP_SHOW_TIME) | |
329 fprintf(fd, "%s %s %s\n", date(), str, message); | |
330 else | |
331 fprintf(fd, "%s %s\n", str, message); | |
332 } | |
333 fclose(fd); | |
334 } | |
335 | |
309 g_free(str); | 336 g_free(str); |
310 g_free(buf); | 337 g_free(buf); |
311 } | 338 } |
312 | 339 |
313 static void close_callback(GtkWidget *widget, struct buddy_chat *b) | 340 static void close_callback(GtkWidget *widget, struct buddy_chat *b) |