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