From 790408f10cfa63d1bf8ef7c7760ee96d60eabc2c Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Wed, 23 Aug 2023 16:01:00 -0700 Subject: [PATCH] sysprof: allow caller to check for invisible nodes --- src/sysprof/sysprof-category-icon.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/sysprof/sysprof-category-icon.c b/src/sysprof/sysprof-category-icon.c index 4748426e..abffeb67 100644 --- a/src/sysprof/sysprof-category-icon.c +++ b/src/sysprof/sysprof-category-icon.c @@ -172,13 +172,8 @@ sysprof_category_icon_set_category (SysprofCategoryIcon *self, const GdkRGBA * sysprof_callgraph_category_get_color (SysprofCallgraphCategory category) { - static GdkRGBA gray; - if (category < G_N_ELEMENTS (category_colors) && category_colors[category].alpha > 0) return &category_colors[category]; - if (gray.alpha == 0) - gdk_rgba_parse (&gray, "#77767b"); - - return &gray; + return NULL; }