[gtk+] entry: fix progressbar area size for interior-focus = FALSE



commit 925c800e5d27951e4fe6c71129318f86bea742c3
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Feb 21 12:07:36 2012 +0100

    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 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 0694a75..5137a49 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.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]