[gtk+/wip/baedert/drawing: 60/73] spinner: Use get_content_size
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 60/73] spinner: Use get_content_size
- Date: Thu, 22 Jun 2017 08:10:22 +0000 (UTC)
commit 7c0bb166434c811fb8b7d8acdc8b60973612190b
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]