[gtk+] gtk: honor entry->has_frame again draw the frame conditionally



commit 881282e055493f1c83ec38f24a909085b844a980
Author: Michael Natterer <mitch gimp org>
Date:   Thu Nov 18 01:04:11 2010 +0100

    gtk: honor entry->has_frame again draw the frame conditionally
    
    when GtkEntry had visible windows, it was never noticed that we always
    draw the frame, because the text_area window would cover it if
    draw_frame was FALSE.

 gtk/gtkentry.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index d177ba2..29281f0 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -3370,10 +3370,10 @@ gtk_entry_draw_frame (GtkWidget      *widget,
                       widget, "entry_bg",
                       x, y, width, height);
 
-  gtk_paint_shadow (style, cr,
-                    state, priv->shadow_type,
-                    widget, "entry", x, y, width, height);
-
+  if (GTK_ENTRY (widget)->has_frame)
+    gtk_paint_shadow (style, cr,
+                      state, priv->shadow_type,
+                      widget, "entry", x, y, width, height);
 
   gtk_entry_draw_progress (widget, cr);
 



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