[gtk+] rendernodeview: Use content size instead of allocated size
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] rendernodeview: Use content size instead of allocated size
- Date: Fri, 3 Nov 2017 09:47:42 +0000 (UTC)
commit 018daaeea84f89d6b69aa7a0ea167482e06f93f2
Author: Timm Bäder <mail baedert org>
Date: Fri Nov 3 10:41:37 2017 +0100
rendernodeview: Use content size instead of allocated size
gtk/inspector/rendernodeview.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/inspector/rendernodeview.c b/gtk/inspector/rendernodeview.c
index 0272211..51e7e0e 100644
--- a/gtk/inspector/rendernodeview.c
+++ b/gtk/inspector/rendernodeview.c
@@ -232,8 +232,8 @@ gtk_render_node_view_snapshot (GtkWidget *widget,
return;
gtk_render_node_view_get_effective_viewport (view, &viewport);
- width = gtk_widget_get_allocated_width (widget);
- height = gtk_widget_get_allocated_height (widget);
+ width = gtk_widget_get_width (widget);
+ height = gtk_widget_get_height (widget);
graphene_rect_init (&rect, 0, 0, width, height);
cr = gtk_snapshot_append_cairo (snapshot,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]