From ea6096cc53f3e23dbe3d9adf33486126077ea94e Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Wed, 7 Feb 2001 19:43:25 +0000 Subject: [PATCH] convert area_height to pango dimensions after painting the background. We 2001-02-07 Sven Neumann * 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. --- ChangeLog | 6 ++++++ ChangeLog.pre-2-0 | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-2 | 6 ++++++ ChangeLog.pre-2-4 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ gtk/gtkentry.c | 3 ++- 8 files changed, 44 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b69f157613..3b88af8b9b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-02-07 Sven Neumann + + * 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 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index b69f157613..3b88af8b9b 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,9 @@ +2001-02-07 Sven Neumann + + * 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 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index b69f157613..3b88af8b9b 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2001-02-07 Sven Neumann + + * 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 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index b69f157613..3b88af8b9b 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +2001-02-07 Sven Neumann + + * 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 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index b69f157613..3b88af8b9b 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +2001-02-07 Sven Neumann + + * 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 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index b69f157613..3b88af8b9b 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +2001-02-07 Sven Neumann + + * 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 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index b69f157613..3b88af8b9b 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +2001-02-07 Sven Neumann + + * 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 * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Fix syntax diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index dfc9a81665..daada4fb7a 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -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);