From af5e62a7efcf177b7e5c8965c3096a16ceb04670 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Wed, 12 Jul 2023 18:02:22 -0700 Subject: [PATCH] sysprof: add scrubber to marks page --- src/sysprof/sysprof-marks-section.c | 8 +++-- src/sysprof/sysprof-marks-section.ui | 45 ++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 3 deletions(-) diff --git a/src/sysprof/sysprof-marks-section.c b/src/sysprof/sysprof-marks-section.c index 3b18eba3..f3200090 100644 --- a/src/sysprof/sysprof-marks-section.c +++ b/src/sysprof/sysprof-marks-section.c @@ -29,7 +29,7 @@ struct _SysprofMarksSection SysprofSection parent_instance; SysprofMarkChart *mark_chart; - //SysprofMarkTable *mark_table; + SysprofMarkTable *mark_table; }; G_DEFINE_FINAL_TYPE (SysprofMarksSection, sysprof_marks_section, SYSPROF_TYPE_SECTION) @@ -54,11 +54,14 @@ sysprof_marks_section_class_init (SysprofMarksSectionClass *klass) gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/sysprof/sysprof-marks-section.ui"); gtk_widget_class_bind_template_child (widget_class, SysprofMarksSection, mark_chart); - //gtk_widget_class_bind_template_child (widget_class, SysprofMarksSection, mark_table); + gtk_widget_class_bind_template_child (widget_class, SysprofMarksSection, mark_table); + g_type_ensure (SYSPROF_TYPE_CHART); g_type_ensure (SYSPROF_TYPE_DOCUMENT_MARK); g_type_ensure (SYSPROF_TYPE_MARK_CHART); g_type_ensure (SYSPROF_TYPE_MARK_TABLE); + g_type_ensure (SYSPROF_TYPE_TIME_SERIES); + g_type_ensure (SYSPROF_TYPE_TIME_SPAN_LAYER); } static void @@ -66,4 +69,3 @@ sysprof_marks_section_init (SysprofMarksSection *self) { gtk_widget_init_template (GTK_WIDGET (self)); } - diff --git a/src/sysprof/sysprof-marks-section.ui b/src/sysprof/sysprof-marks-section.ui index 692fe718..76f11645 100644 --- a/src/sysprof/sysprof-marks-section.ui +++ b/src/sysprof/sysprof-marks-section.ui @@ -5,6 +5,51 @@ vertical + + + + SysprofMarksSection + + + + 6 + 6 + 20 + + + Marks + + + SysprofMarksSection + + + + + + + + SysprofMarksSection + + + + + + + + + + + + + + + + + + + + + true