diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-09-11 22:55:37 -0400 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2020-09-18 15:38:55 +0200 |
commit | 0c6226c20b2b3dcf3bc77595edcd28b0d4626dfb (patch) | |
tree | 0a88574f105476f8c3185ec563b76635689be2b6 /gtk/inspector | |
parent | 9267f705ef115716128c7afabcf080728f6b70a6 (diff) | |
download | gtk+-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.c | 13 |
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); |