[gtk+/wip/baedert/gl] 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] showrendernode: Show at least the root node bounds
- Date: Tue, 12 Dec 2017 19:32:28 +0000 (UTC)
commit ccfbfd9eb969a3dccbded137b61f6f6db93dc016
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]