[gtk+] Recorder: Show details of crossfade nodes



commit 0d8b2535d82704138122f947567c56126c9a3428
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Sep 28 19:20:25 2017 -0400

    Recorder: Show details of crossfade 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 e1f219a..d8f7bca 100644
--- a/gtk/inspector/recorder.c
+++ b/gtk/inspector/recorder.c
@@ -393,6 +393,22 @@ populate_render_node_properties (GtkListStore  *store,
       }
       break;
 
+    case GSK_CROSS_FADE_NODE:
+      {
+        double progress = gsk_cross_fade_node_get_progress (node);
+        const char *text;
+
+        text = g_strdup_printf ("%.2f", progress);
+        gtk_list_store_insert_with_values (store, NULL, -1,
+                                           0, "Progress",
+                                           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]