button: Remove is_drawable() check
It's already done in the expose function
This commit is contained in:
@ -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,
|
||||
@ -1646,7 +1643,6 @@ _gtk_button_paint (GtkButton *button,
|
||||
area, widget, "button",
|
||||
x, y, width, height);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
||||
Reference in New Issue
Block a user