switch: Avoid a gtk_widget_get_clip call

Since we get the correct clip anyway from the gtk_widget_size_allocate
call above.
This commit is contained in:
Timm Bäder 2018-03-17 20:29:36 +01:00
parent 922b2cf99a
commit f261bf2fc6

View File

@ -334,7 +334,6 @@ gtk_switch_size_allocate (GtkWidget *widget,
slider_alloc.height = allocation->height;
gtk_widget_size_allocate (priv->slider, &slider_alloc, -1, &child_clip);
gtk_widget_get_clip (priv->slider, &child_clip);
gdk_rectangle_union (out_clip, &child_clip, out_clip);