entry: Remove needless check
The only window we're ever called to draw is our own window. D'oh.
This commit is contained in:
parent
10fd53970c
commit
c70698084c
@ -3554,8 +3554,6 @@ gtk_entry_draw (GtkWidget *widget,
|
|||||||
gtk_style_context_save (context);
|
gtk_style_context_save (context);
|
||||||
gtk_style_context_set_state (context, state);
|
gtk_style_context_set_state (context, state);
|
||||||
|
|
||||||
if (gtk_cairo_should_draw_window (cr, gtk_widget_get_window (widget)))
|
|
||||||
{
|
|
||||||
/* Draw entry_bg, shadow, progress and focus */
|
/* Draw entry_bg, shadow, progress and focus */
|
||||||
gtk_entry_draw_frame (widget, context, cr);
|
gtk_entry_draw_frame (widget, context, cr);
|
||||||
|
|
||||||
@ -3593,7 +3591,6 @@ gtk_entry_draw (GtkWidget *widget,
|
|||||||
cairo_restore (cr);
|
cairo_restore (cr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
gtk_style_context_restore (context);
|
gtk_style_context_restore (context);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user