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.
This commit is contained in:
Michael Natterer 2010-11-18 01:04:11 +01:00
parent 3ec8daa66c
commit 881282e055

View File

@ -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);