[gtk+/wip/baedert/drawing: 161/186] icon: Only draw in content allocation



commit 226214c46a2def8c0a50960bfee54d87a7f38ab4
Author: Timm Bäder <mail baedert org>
Date:   Wed May 10 21:22:21 2017 +0200

    icon: Only draw in content allocation

 gtk/gtkicon.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkicon.c b/gtk/gtkicon.c
index c8c0c6e..691f7ad 100644
--- a/gtk/gtkicon.c
+++ b/gtk/gtkicon.c
@@ -47,7 +47,7 @@ gtk_icon_snapshot (GtkWidget   *widget,
   GtkCssStyle *style = gtk_css_node_get_style (gtk_widget_get_css_node (widget));
   GtkAllocation alloc;
 
-  gtk_widget_get_allocation (widget, &alloc);
+  gtk_widget_get_content_allocation (widget, &alloc);
 
   gtk_css_style_snapshot_icon (style,
                                snapshot,


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