[gtk+/wip/baedert/drawing] icon: Only draw in content allocation
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing] icon: Only draw in content allocation
- Date: Wed, 10 May 2017 19:20:10 +0000 (UTC)
commit 8ada685dc4915dfbf7c5c26a0ca3ed5929785f13
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]