summaryrefslogtreecommitdiff
path: root/gtk/inspector
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-09-11 22:55:37 -0400
committerTimm Bäder <mail@baedert.org>2020-09-18 15:38:55 +0200
commit0c6226c20b2b3dcf3bc77595edcd28b0d4626dfb (patch)
tree0a88574f105476f8c3185ec563b76635689be2b6 /gtk/inspector
parent9267f705ef115716128c7afabcf080728f6b70a6 (diff)
downloadgtk+-0c6226c20b2b3dcf3bc77595edcd28b0d4626dfb.tar.gz
gsk: Add a radial gradient node
Only a fallback implementation for now. Fixes #2262
Diffstat (limited to 'gtk/inspector')
-rw-r--r--gtk/inspector/recorder.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk/inspector/recorder.c b/gtk/inspector/recorder.c
index e48200a909..043d407dbb 100644
--- a/gtk/inspector/recorder.c
+++ b/gtk/inspector/recorder.c
@@ -131,6 +131,8 @@ create_list_model_for_render_node (GskRenderNode *node)
case GSK_COLOR_NODE:
case GSK_LINEAR_GRADIENT_NODE:
case GSK_REPEATING_LINEAR_GRADIENT_NODE:
+ case GSK_RADIAL_GRADIENT_NODE:
+ case GSK_REPEATING_RADIAL_GRADIENT_NODE:
case GSK_BORDER_NODE:
case GSK_INSET_SHADOW_NODE:
case GSK_OUTSET_SHADOW_NODE:
@@ -234,6 +236,10 @@ node_type_name (GskRenderNodeType type)
return "Linear Gradient";
case GSK_REPEATING_LINEAR_GRADIENT_NODE:
return "Repeating Linear Gradient";
+ case GSK_RADIAL_GRADIENT_NODE:
+ return "Radial Gradient";
+ case GSK_REPEATING_RADIAL_GRADIENT_NODE:
+ return "Repeating Radial Gradient";
case GSK_BORDER_NODE:
return "Border";
case GSK_TEXTURE_NODE:
@@ -279,6 +285,8 @@ node_name (GskRenderNode *node)
case GSK_CAIRO_NODE:
case GSK_LINEAR_GRADIENT_NODE:
case GSK_REPEATING_LINEAR_GRADIENT_NODE:
+ case GSK_RADIAL_GRADIENT_NODE:
+ case GSK_REPEATING_RADIAL_GRADIENT_NODE:
case GSK_BORDER_NODE:
case GSK_INSET_SHADOW_NODE:
case GSK_OUTSET_SHADOW_NODE:
@@ -625,6 +633,11 @@ populate_render_node_properties (GtkListStore *store,
}
break;
+ case GSK_RADIAL_GRADIENT_NODE:
+ case GSK_REPEATING_RADIAL_GRADIENT_NODE:
+ /* TODO */
+ break;
+
case GSK_TEXT_NODE:
{
const PangoFont *font = gsk_text_node_peek_font (node);