[gtk+/wip/baedert/gl: 88/95] showrendernode: Show at least the root node bounds
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gl: 88/95] showrendernode: Show at least the root node bounds
- Date: Tue, 19 Dec 2017 14:49:50 +0000 (UTC)
commit b7d7c3847ea384568c47a174a46ca7b8169c8354
Author: Timm Bäder <mail baedert org>
Date: Mon Dec 11 10:02:13 2017 +0100
showrendernode: Show at least the root node bounds
tests/showrendernode.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/tests/showrendernode.c b/tests/showrendernode.c
index 64ba75e..d9932fd 100644
--- a/tests/showrendernode.c
+++ b/tests/showrendernode.c
@@ -115,7 +115,9 @@ main (int argc, char **argv)
}
gsk_render_node_get_bounds (GTK_NODE_VIEW (nodeview)->node, &node_bounds);
- gtk_window_resize (GTK_WINDOW (window), 600, 500);//node_bounds.size.width, node_bounds.size.height);
+ gtk_window_resize (GTK_WINDOW (window),
+ MAX (600, node_bounds.size.width),
+ MAX (500, node_bounds.size.height));
g_signal_connect (window, "delete-event", G_CALLBACK (gtk_main_quit), NULL);
gtk_widget_show (window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]