From 2d5a121c3c4dddcccbc42fd27f6b608997abe21f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 28 Sep 2017 19:14:32 -0400 Subject: [PATCH] recorder: Show details for opacity nodes --- gtk/inspector/recorder.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/gtk/inspector/recorder.c b/gtk/inspector/recorder.c index 6b2d2657c8..e1f219ac0c 100644 --- a/gtk/inspector/recorder.c +++ b/gtk/inspector/recorder.c @@ -377,6 +377,22 @@ populate_render_node_properties (GtkListStore *store, } break; + case GSK_OPACITY_NODE: + { + double opacity = gsk_opacity_node_get_opacity (node); + const char *text; + + text = g_strdup_printf ("%.2f", opacity); + gtk_list_store_insert_with_values (store, NULL, -1, + 0, "Opacity", + 1, text, + 2, FALSE, + 3, NULL, + -1); + g_free (text); + } + break; + default: ; } }