comparison gtk3/dw.c @ 998:f019c5e8511f

Fixed GTK reporting wrong character and line counts. 1000 revisions!!!
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 07 May 2011 20:17:06 +0000
parents f1c7b03f944d
children 4ef0e878fe06
comparison
equal deleted inserted replaced
997:dfa2204e231f 998:f019c5e8511f
4364 if(tmp && GTK_IS_TEXT_VIEW(tmp)) 4364 if(tmp && GTK_IS_TEXT_VIEW(tmp))
4365 { 4365 {
4366 GtkTextBuffer *buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(tmp)); 4366 GtkTextBuffer *buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(tmp));
4367 4367
4368 if(bytes) 4368 if(bytes)
4369 *bytes = gtk_text_buffer_get_char_count(buffer) + 1; 4369 *bytes = gtk_text_buffer_get_char_count(buffer);
4370 if(lines) 4370 if(lines)
4371 *lines = gtk_text_buffer_get_line_count(buffer) + 1; 4371 *lines = gtk_text_buffer_get_line_count(buffer);
4372 } 4372 }
4373 } 4373 }
4374 DW_MUTEX_UNLOCK; 4374 DW_MUTEX_UNLOCK;
4375 } 4375 }
4376 4376