From 1535cab936a63f95a1803d007840b7a79652dbf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 18 Jun 2017 12:29:49 +0200 Subject: [PATCH] spinner: Use get_content_size --- gtk/gtkspinner.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk/gtkspinner.c b/gtk/gtkspinner.c index d5f1f2a95a..12c98aa39c 100644 --- a/gtk/gtkspinner.c +++ b/gtk/gtkspinner.c @@ -115,13 +115,13 @@ gtk_spinner_snapshot (GtkWidget *widget, GtkSnapshot *snapshot) { 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, snapshot, - content_allocation.width, content_allocation.height, + width, height, GTK_CSS_IMAGE_BUILTIN_SPINNER); }