[gtk+] Recorder: Show details of blur nodes
- From: Matthias Clasen <matthiasc src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gtk+] Recorder: Show details of blur nodes
 
- Date: Fri, 29 Sep 2017 01:07:58 +0000 (UTC)
 
commit 89261d18c2771954efa52aa95165cf8d3f3fc050
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Sep 28 19:48:42 2017 -0400
    Recorder: Show details of blur nodes
 gtk/inspector/recorder.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/gtk/inspector/recorder.c b/gtk/inspector/recorder.c
index 19786a9..73dc681 100644
--- a/gtk/inspector/recorder.c
+++ b/gtk/inspector/recorder.c
@@ -425,6 +425,21 @@ populate_render_node_properties (GtkListStore  *store,
       }
       break;
 
+    case GSK_BLUR_NODE:
+      {
+        double radius = gsk_blur_node_get_radius (node);
+        const char *text;
+
+        text = g_strdup_printf ("%.2f", radius);
+        gtk_list_store_insert_with_values (store, NULL, -1,
+                                           0, "Radius",
+                                           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]