From 4ef229d43688578243d22e9c000f9a78d8e9f43f Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Tue, 1 Aug 2023 15:33:01 -0700 Subject: [PATCH] sysprof: fix missing type assurance --- src/sysprof/sysprof-files-section.c | 2 +- src/sysprof/sysprof-memory-section.c | 6 ++++-- src/sysprof/sysprof-samples-section.c | 6 ++++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/sysprof/sysprof-files-section.c b/src/sysprof/sysprof-files-section.c index b19c3e6b..866f42fc 100644 --- a/src/sysprof/sysprof-files-section.c +++ b/src/sysprof/sysprof-files-section.c @@ -133,7 +133,7 @@ sysprof_files_section_class_init (SysprofFilesSectionClass *klass) gtk_widget_class_bind_template_callback (widget_class, sysprof_files_section_activate_cb); gtk_widget_class_bind_template_callback (widget_class, format_size); - g_type_ensure (SYSPROF_TYPE_DOCUMENT_LOG); + g_type_ensure (SYSPROF_TYPE_DOCUMENT_FILE); g_type_ensure (SYSPROF_TYPE_TIME_LABEL); } diff --git a/src/sysprof/sysprof-memory-section.c b/src/sysprof/sysprof-memory-section.c index 3391ad76..1a02c9e4 100644 --- a/src/sysprof/sysprof-memory-section.c +++ b/src/sysprof/sysprof-memory-section.c @@ -72,10 +72,12 @@ sysprof_memory_section_class_init (SysprofMemorySectionClass *klass) gtk_widget_class_bind_template_callback (widget_class, format_number); g_type_ensure (SYSPROF_TYPE_CHART); - g_type_ensure (SYSPROF_TYPE_XY_SERIES); g_type_ensure (SYSPROF_TYPE_COLUMN_LAYER); - g_type_ensure (SYSPROF_TYPE_VALUE_AXIS); + g_type_ensure (SYSPROF_TYPE_DOCUMENT_ALLOCATION); + g_type_ensure (SYSPROF_TYPE_DOCUMENT_TRACEABLE); g_type_ensure (SYSPROF_TYPE_MEMORY_CALLGRAPH_VIEW); + g_type_ensure (SYSPROF_TYPE_VALUE_AXIS); + g_type_ensure (SYSPROF_TYPE_XY_SERIES); } static void diff --git a/src/sysprof/sysprof-samples-section.c b/src/sysprof/sysprof-samples-section.c index 3cbf54da..f3c11b5c 100644 --- a/src/sysprof/sysprof-samples-section.c +++ b/src/sysprof/sysprof-samples-section.c @@ -74,15 +74,17 @@ sysprof_samples_section_class_init (SysprofSamplesSectionClass *klass) gtk_widget_class_bind_template_child (widget_class, SysprofSamplesSection, callgraph_view); gtk_widget_class_bind_template_callback (widget_class, format_number); + g_type_ensure (SYSPROF_TYPE_CATEGORY_SUMMARY); g_type_ensure (SYSPROF_TYPE_CHART); - g_type_ensure (SYSPROF_TYPE_XY_SERIES); g_type_ensure (SYSPROF_TYPE_COLUMN_LAYER); + g_type_ensure (SYSPROF_TYPE_DOCUMENT_SAMPLE); + g_type_ensure (SYSPROF_TYPE_DOCUMENT_TRACEABLE); g_type_ensure (SYSPROF_TYPE_TIME_FILTER_MODEL); g_type_ensure (SYSPROF_TYPE_TIME_SCRUBBER); g_type_ensure (SYSPROF_TYPE_TRACEABLES_UTILITY); g_type_ensure (SYSPROF_TYPE_VALUE_AXIS); g_type_ensure (SYSPROF_TYPE_WEIGHTED_CALLGRAPH_VIEW); - g_type_ensure (SYSPROF_TYPE_CATEGORY_SUMMARY); + g_type_ensure (SYSPROF_TYPE_XY_SERIES); } static void