pidgin: 82af7f1d: Move 2 of the 5 pixels' padding between ...

resiak at soc.pidgin.im resiak at soc.pidgin.im
Thu Apr 24 18:30:48 EDT 2008


-----------------------------------------------------------------
Revision: 82af7f1dab568c2a359aaecca4e31e650063e1c1
Ancestor: c1c52794e349dc32db9a48305c457dab1483c374
Author: resiak at soc.pidgin.im
Date: 2008-04-24T22:23:40
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/82af7f1dab568c2a359aaecca4e31e650063e1c1

Modified files:
        pidgin/gtkimhtml.c

ChangeLog: 

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.)

-------------- next part --------------
============================================================
--- pidgin/gtkimhtml.c	1917ef0ea282673f5f17685055709d13ea7195f1
+++ pidgin/gtkimhtml.c	ef7bbc3ce686b2a465ef6a0d1605492eeb951a2e
@@ -758,6 +758,7 @@ gtk_imhtml_expose_event (GtkWidget      
 
 		
 			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 @@ static void gtk_imhtml_init (GtkIMHtml *
 	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);*/


More information about the Commits mailing list