comparison src/gtkconv.c @ 11227:8b3d1b2c2c43

[gaim-migrate @ 13365] (17:47:13) deryni: datallah: Was there supposed to be a printf in that commit? (the answer is "no") committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Wed, 10 Aug 2005 22:24:03 +0000
parents 409d6a11da51
children a511b77a368b
comparison
equal deleted inserted replaced
11226:1e65b7d442ca 11227:8b3d1b2c2c43
4982 win = gaim_conversation_get_window(conv); 4982 win = gaim_conversation_get_window(conv);
4983 4983
4984 line_count = gtk_text_buffer_get_line_count( 4984 line_count = gtk_text_buffer_get_line_count(
4985 gtk_text_view_get_buffer(GTK_TEXT_VIEW( 4985 gtk_text_view_get_buffer(GTK_TEXT_VIEW(
4986 gtkconv->imhtml))); 4986 gtkconv->imhtml)));
4987 printf("writing to conv - max_scrollback_lines = %d our lines = %d\n", max_scrollback_lines, line_count); 4987
4988 /* If we're sitting at more than 100 lines more than the 4988 /* If we're sitting at more than 100 lines more than the
4989 max scrollback, trim down to max scrollback */ 4989 max scrollback, trim down to max scrollback */
4990 if (max_scrollback_lines > 0 4990 if (max_scrollback_lines > 0
4991 && line_count > (max_scrollback_lines + 100)) { 4991 && line_count > (max_scrollback_lines + 100)) {
4992 GtkTextBuffer *text_buffer = gtk_text_view_get_buffer( 4992 GtkTextBuffer *text_buffer = gtk_text_view_get_buffer(