[gtk+] recorder: Show details for opacity nodes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] recorder: Show details for opacity nodes
- Date: Fri, 29 Sep 2017 01:07:38 +0000 (UTC)
commit 2d5a121c3c4dddcccbc42fd27f6b608997abe21f
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Sep 28 19:14:32 2017 -0400
recorder: Show details for opacity nodes
gtk/inspector/recorder.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/gtk/inspector/recorder.c b/gtk/inspector/recorder.c
index 6b2d265..e1f219a 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: ;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]