entry: Remove needless check

The only window we're ever called to draw is our own window. D'oh.
This commit is contained in:
Benjamin Otte 2011-04-19 00:56:16 +02:00
parent 10fd53970c
commit c70698084c

View File

@ -3554,8 +3554,6 @@ gtk_entry_draw (GtkWidget *widget,
gtk_style_context_save (context);
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 */
gtk_entry_draw_frame (widget, context, cr);
@ -3593,7 +3591,6 @@ gtk_entry_draw (GtkWidget *widget,
cairo_restore (cr);
}
}
}
gtk_style_context_restore (context);