[gtk+/wip/baedert/gl: 210/216] showrendernode: Show at least the root node bounds



commit 195b55a1e45eea4aa1bed6d374ada8489a705bb7
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]