sysprof: fix missing type assurance

This commit is contained in:
Christian Hergert
2023-08-01 15:33:01 -07:00
parent 3c33ae06a0
commit 4ef229d436
3 changed files with 9 additions and 5 deletions

View File

@ -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);
}

View File

@ -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

View File

@ -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