convert area_height to pango dimensions after painting the background. We

2001-02-07  Sven Neumann  <sven@convergence.de>

	* gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to
	pango dimensions after painting the background. We used to draw
	gigantic flat boxes here.
This commit is contained in:
Sven Neumann 2001-02-07 19:43:25 +00:00 committed by Sven Neumann
parent 82e2421542
commit ea6096cc53
8 changed files with 44 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2001-02-07 Sven Neumann <sven@convergence.de>
* gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to
pango dimensions after painting the background. We used to draw
gigantic flat boxes here.
Mon Feb 5 22:05:57 2001 Owen Taylor <otaylor@redhat.com>
* gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax

View File

@ -1,3 +1,9 @@
2001-02-07 Sven Neumann <sven@convergence.de>
* gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to
pango dimensions after painting the background. We used to draw
gigantic flat boxes here.
Mon Feb 5 22:05:57 2001 Owen Taylor <otaylor@redhat.com>
* gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax

View File

@ -1,3 +1,9 @@
2001-02-07 Sven Neumann <sven@convergence.de>
* gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to
pango dimensions after painting the background. We used to draw
gigantic flat boxes here.
Mon Feb 5 22:05:57 2001 Owen Taylor <otaylor@redhat.com>
* gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax

View File

@ -1,3 +1,9 @@
2001-02-07 Sven Neumann <sven@convergence.de>
* gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to
pango dimensions after painting the background. We used to draw
gigantic flat boxes here.
Mon Feb 5 22:05:57 2001 Owen Taylor <otaylor@redhat.com>
* gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax

View File

@ -1,3 +1,9 @@
2001-02-07 Sven Neumann <sven@convergence.de>
* gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to
pango dimensions after painting the background. We used to draw
gigantic flat boxes here.
Mon Feb 5 22:05:57 2001 Owen Taylor <otaylor@redhat.com>
* gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax

View File

@ -1,3 +1,9 @@
2001-02-07 Sven Neumann <sven@convergence.de>
* gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to
pango dimensions after painting the background. We used to draw
gigantic flat boxes here.
Mon Feb 5 22:05:57 2001 Owen Taylor <otaylor@redhat.com>
* gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax

View File

@ -1,3 +1,9 @@
2001-02-07 Sven Neumann <sven@convergence.de>
* gtk/gtkentry.c (gtk_entry_draw_text): convert area_height to
pango dimensions after painting the background. We used to draw
gigantic flat boxes here.
Mon Feb 5 22:05:57 2001 Owen Taylor <otaylor@redhat.com>
* gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax

View File

@ -1951,7 +1951,6 @@ gtk_entry_draw_text (GtkEntry *entry)
gint y_pos;
gdk_window_get_size (entry->text_area, &area_width, &area_height);
area_height = PANGO_SCALE * (area_height - 2 * INNER_BORDER);
widget = GTK_WIDGET (entry);
@ -1960,6 +1959,8 @@ gtk_entry_draw_text (GtkEntry *entry)
NULL, widget, "entry_bg",
0, 0, area_width, area_height);
area_height = PANGO_SCALE * (area_height - 2 * INNER_BORDER);
line = pango_layout_get_lines (layout)->data;
pango_layout_line_get_extents (line, NULL, &logical_rect);