spinner: Use get_content_size

This commit is contained in:
Timm Bäder 2017-06-18 12:29:49 +02:00 committed by Matthias Clasen
parent 6b9d10039d
commit 1535cab936

View File

@ -115,13 +115,13 @@ gtk_spinner_snapshot (GtkWidget *widget,
GtkSnapshot *snapshot) GtkSnapshot *snapshot)
{ {
GtkCssStyle *style = gtk_css_node_get_style (gtk_widget_get_css_node (widget)); GtkCssStyle *style = gtk_css_node_get_style (gtk_widget_get_css_node (widget));
GtkAllocation content_allocation; int width, height;
gtk_widget_get_content_allocation (widget, &content_allocation); gtk_widget_get_content_size (widget, &width, &height);
gtk_css_style_snapshot_icon (style, gtk_css_style_snapshot_icon (style,
snapshot, snapshot,
content_allocation.width, content_allocation.height, width, height,
GTK_CSS_IMAGE_BUILTIN_SPINNER); GTK_CSS_IMAGE_BUILTIN_SPINNER);
} }