button: Remove is_drawable() check

It's already done in the expose function
This commit is contained in:
Benjamin Otte
2010-09-08 00:12:35 +02:00
parent ee15f5aab1
commit e0be884297

View File

@ -1548,15 +1548,12 @@ _gtk_button_paint (GtkButton *button,
gboolean interior_focus;
gint focus_width;
gint focus_pad;
widget = GTK_WIDGET (button);
if (gtk_widget_is_drawable (widget))
{
GtkAllocation allocation;
GdkWindow *window;
GtkStyle *style;
widget = GTK_WIDGET (button);
gtk_button_get_props (button, &default_border, &default_outside_border, NULL, &interior_focus);
gtk_widget_style_get (widget,
"focus-line-width", &focus_width,
@ -1647,7 +1644,6 @@ _gtk_button_paint (GtkButton *button,
x, y, width, height);
}
}
}
static gboolean
gtk_button_expose (GtkWidget *widget,