mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
sysprof: allow caller to check for invisible nodes
This commit is contained in:
@ -172,13 +172,8 @@ sysprof_category_icon_set_category (SysprofCategoryIcon *self,
|
|||||||
const GdkRGBA *
|
const GdkRGBA *
|
||||||
sysprof_callgraph_category_get_color (SysprofCallgraphCategory category)
|
sysprof_callgraph_category_get_color (SysprofCallgraphCategory category)
|
||||||
{
|
{
|
||||||
static GdkRGBA gray;
|
|
||||||
|
|
||||||
if (category < G_N_ELEMENTS (category_colors) && category_colors[category].alpha > 0)
|
if (category < G_N_ELEMENTS (category_colors) && category_colors[category].alpha > 0)
|
||||||
return &category_colors[category];
|
return &category_colors[category];
|
||||||
|
|
||||||
if (gray.alpha == 0)
|
return NULL;
|
||||||
gdk_rgba_parse (&gray, "#77767b");
|
|
||||||
|
|
||||||
return &gray;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user