From 9398c7f8a9073f4ddd934cadbb30dbd11cb86ef0 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Fri, 17 May 2019 20:15:13 -0700 Subject: [PATCH] libsysprof-ui: allow selecting multiple rows Can't do much with the selection yet though. --- src/libsysprof-ui/sysprof-marks-view.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libsysprof-ui/sysprof-marks-view.c b/src/libsysprof-ui/sysprof-marks-view.c index 0175d9d1..4cb2ddad 100644 --- a/src/libsysprof-ui/sysprof-marks-view.c +++ b/src/libsysprof-ui/sysprof-marks-view.c @@ -236,6 +236,9 @@ sysprof_marks_view_init (SysprofMarksView *self) gtk_widget_init_template (GTK_WIDGET (self)); + gtk_tree_selection_set_mode (gtk_tree_view_get_selection (priv->tree_view), + GTK_SELECTION_MULTIPLE); + g_signal_connect_object (priv->tree_view, "key-press-event", G_CALLBACK (sysprof_marks_view_tree_view_key_press_event_cb),