[gtk+] spinner: Stop using gtk_widget_get_content_size
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] spinner: Stop using gtk_widget_get_content_size
- Date: Sun, 3 Dec 2017 21:05:05 +0000 (UTC)
commit 7cc9bee7a2b6dc1686492efa93c422fd145d5223
Author: Timm Bäder <mail baedert org>
Date: Sun Dec 3 19:00:09 2017 +0100
spinner: Stop using gtk_widget_get_content_size
gtk/gtkspinner.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkspinner.c b/gtk/gtkspinner.c
index 7244edd..17b0f7d 100644
--- a/gtk/gtkspinner.c
+++ b/gtk/gtkspinner.c
@@ -110,13 +110,11 @@ gtk_spinner_snapshot (GtkWidget *widget,
GtkSnapshot *snapshot)
{
GtkCssStyle *style = gtk_css_node_get_style (gtk_widget_get_css_node (widget));
- int width, height;
-
- gtk_widget_get_content_size (widget, &width, &height);
gtk_css_style_snapshot_icon (style,
snapshot,
- width, height,
+ gtk_widget_get_width (widget),
+ gtk_widget_get_height (widget),
GTK_CSS_IMAGE_BUILTIN_SPINNER);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]