[gtk+] spinner: Use get_content_size



commit 1535cab936a63f95a1803d007840b7a79652dbf6
Author: Timm Bäder <mail baedert org>
Date:   Sun Jun 18 12:29:49 2017 +0200

    spinner: Use get_content_size

 gtk/gtkspinner.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkspinner.c b/gtk/gtkspinner.c
index d5f1f2a..12c98aa 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);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]