[gtk+/wip/matthiasc/shadertoy: 2/3] inspector: learn about new nodes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/shadertoy: 2/3] inspector: learn about new nodes
- Date: Sun, 24 Sep 2017 04:44:20 +0000 (UTC)
commit 98f99f5ab04660470d1b1373d9be86fab14ddc3b
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Sep 23 20:49:45 2017 -0400
inspector: learn about new nodes
Whenever we add a new kind of render node, the inspector needs
to be updated, or it crashes. Somewhat annoying.
gtk/inspector/gtktreemodelrendernode.c | 1 +
gtk/inspector/recorder.c | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/inspector/gtktreemodelrendernode.c b/gtk/inspector/gtktreemodelrendernode.c
index 285cd01..bc9b0dd 100644
--- a/gtk/inspector/gtktreemodelrendernode.c
+++ b/gtk/inspector/gtktreemodelrendernode.c
@@ -531,6 +531,7 @@ append_node (GtkTreeModelRenderNode *nodemodel,
case GSK_BORDER_NODE:
case GSK_INSET_SHADOW_NODE:
case GSK_OUTSET_SHADOW_NODE:
+ case GSK_PIXEL_SHADER_NODE:
/* no children */
break;
diff --git a/gtk/inspector/recorder.c b/gtk/inspector/recorder.c
index 2ffbcdb..f1c6037 100644
--- a/gtk/inspector/recorder.c
+++ b/gtk/inspector/recorder.c
@@ -185,6 +185,8 @@ node_type_name (GskRenderNodeType type)
return "Text";
case GSK_BLUR_NODE:
return "Blur";
+ case GSK_PIXEL_SHADER_NODE:
+ return "Pixel Shader";
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]