forked from AuroraMiddleware/gtk
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:
parent
3ec8daa66c
commit
881282e055
@ -3370,10 +3370,10 @@ gtk_entry_draw_frame (GtkWidget *widget,
|
|||||||
widget, "entry_bg",
|
widget, "entry_bg",
|
||||||
x, y, width, height);
|
x, y, width, height);
|
||||||
|
|
||||||
gtk_paint_shadow (style, cr,
|
if (GTK_ENTRY (widget)->has_frame)
|
||||||
state, priv->shadow_type,
|
gtk_paint_shadow (style, cr,
|
||||||
widget, "entry", x, y, width, height);
|
state, priv->shadow_type,
|
||||||
|
widget, "entry", x, y, width, height);
|
||||||
|
|
||||||
gtk_entry_draw_progress (widget, cr);
|
gtk_entry_draw_progress (widget, cr);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user