From 925c800e5d27951e4fe6c71129318f86bea742c3 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Tue, 21 Feb 2012 12:07:36 +0100 Subject: [PATCH] entry: fix progressbar area size for interior-focus = FALSE No need to subtract focus line width again, since the progressbar is rendered starting at (0, 0). This also fixes the entry-progressbar-coloring reftest. --- gtk/gtkentry.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index 0694a75850..5137a4996d 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -3540,12 +3540,6 @@ get_progress_area (GtkWidget *widget, *width = text_area_width + entry_borders.left + entry_borders.right; *height = text_area_height + entry_borders.top + entry_borders.bottom; - if (!private->interior_focus) - { - *x -= private->focus_width; - *y -= private->focus_width; - } - /* if the text area got resized by a subclass, subtract the left/right * border width, so that the progress bar won't extend over the resized * text area.