mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 07:30:54 +00:00
libsysprof-gtk: remove selections from mark chart
This doesn't benefit from a selection currently.
This commit is contained in:
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user