[gtk+/wip/matthiasc/gskpango: 1/2] inspector: Fix a crash
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/gskpango: 1/2] inspector: Fix a crash
- Date: Fri, 1 Sep 2017 14:41:47 +0000 (UTC)
commit e020dc2061dd002452385b83ea393f01e23788ff
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Aug 31 14:35:12 2017 -0400
inspector: Fix a crash
The inspector needs to know about all render node types.
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 63e3001..1697aaf 100644
--- a/gtk/inspector/gtktreemodelrendernode.c
+++ b/gtk/inspector/gtktreemodelrendernode.c
@@ -523,6 +523,7 @@ append_node (GtkTreeModelRenderNode *nodemodel,
break;
case GSK_CAIRO_NODE:
+ case GSK_TEXT_NODE:
case GSK_TEXTURE_NODE:
case GSK_COLOR_NODE:
case GSK_LINEAR_GRADIENT_NODE:
diff --git a/gtk/inspector/recorder.c b/gtk/inspector/recorder.c
index aeb7007..31f548a 100644
--- a/gtk/inspector/recorder.c
+++ b/gtk/inspector/recorder.c
@@ -176,6 +176,8 @@ node_type_name (GskRenderNodeType type)
return "Blend";
case GSK_CROSS_FADE_NODE:
return "CrossFade";
+ case GSK_TEXT_NODE:
+ return "Text";
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]