Move 2 of the 5 pixels' padding between paragraphs to above the line.

Thu, 24 Apr 2008 22:23:40 +0000

author
Will Thompson <resiak@pidgin.im>
date
Thu, 24 Apr 2008 22:23:40 +0000
changeset 22865
eeed3e121bed
parent 22864
ccf87155eab2
child 22866
f767c7656ed7

Move 2 of the 5 pixels' padding between paragraphs to above the line.
The only noticable effect is to put 2 pixels of space above the first line in
the entry box, which means the letters aren't rammed up against the top.

(I seem to have just admitted to caring about 2 pixels in a text input.)

pidgin/gtkimhtml.c file | annotate | diff | comparison | revisions
--- a/pidgin/gtkimhtml.c	Thu Apr 24 19:51:00 2008 +0000
+++ b/pidgin/gtkimhtml.c	Thu Apr 24 22:23:40 2008 +0000
@@ -758,6 +758,7 @@
 
 		
 			rect.height = tag_area.y + tag_area.height - rect.y
+				+ gtk_text_view_get_pixels_above_lines(GTK_TEXT_VIEW(widget))
 				+ gtk_text_view_get_pixels_below_lines(GTK_TEXT_VIEW(widget));
 
 			color = tag->name + 11;
@@ -1463,7 +1464,8 @@
 	gtk_text_buffer_get_end_iter (imhtml->text_buffer, &iter);
 	gtk_text_view_set_buffer(GTK_TEXT_VIEW(imhtml), imhtml->text_buffer);
 	gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(imhtml), GTK_WRAP_WORD_CHAR);
-	gtk_text_view_set_pixels_below_lines(GTK_TEXT_VIEW(imhtml), 5);
+	gtk_text_view_set_pixels_above_lines(GTK_TEXT_VIEW(imhtml), 2);
+	gtk_text_view_set_pixels_below_lines(GTK_TEXT_VIEW(imhtml), 3);
 	gtk_text_view_set_left_margin(GTK_TEXT_VIEW(imhtml), 2);
 	gtk_text_view_set_right_margin(GTK_TEXT_VIEW(imhtml), 2);
 	/*gtk_text_view_set_indent(GTK_TEXT_VIEW(imhtml), -15);*/

mercurial