libsysprof-gtk: remove selections from mark chart

This doesn't benefit from a selection currently.
This commit is contained in:
Christian Hergert
2023-06-16 15:56:02 -07:00
parent 0f113eaad7
commit f53fb38d69

View File

@ -68,7 +68,7 @@ sysprof_mark_chart_disconnect (SysprofMarkChart *self)
static void static void
sysprof_mark_chart_connect (SysprofMarkChart *self) sysprof_mark_chart_connect (SysprofMarkChart *self)
{ {
g_autoptr(GtkSingleSelection) single = NULL; g_autoptr(GtkNoSelection) no = NULL;
GtkFlattenListModel *flatten; GtkFlattenListModel *flatten;
SysprofDocument *document; SysprofDocument *document;
GtkMapListModel *map; GtkMapListModel *map;
@ -82,9 +82,9 @@ sysprof_mark_chart_connect (SysprofMarkChart *self)
map_func, map_func,
g_object_ref (self->session), g_object_ref (self->session),
g_object_unref); g_object_unref);
single = gtk_single_selection_new (G_LIST_MODEL (map)); no = gtk_no_selection_new (G_LIST_MODEL (map));
gtk_list_view_set_model (self->list_view, GTK_SELECTION_MODEL (single)); gtk_list_view_set_model (self->list_view, GTK_SELECTION_MODEL (no));
} }
static void static void