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:
committed by
Sven Neumann
parent
82e2421542
commit
ea6096cc53
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user