[sysprof] libsysprof-ui: allow selecting multiple rows
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] libsysprof-ui: allow selecting multiple rows
- Date: Wed, 29 May 2019 22:33:43 +0000 (UTC)
commit 9398c7f8a9073f4ddd934cadbb30dbd11cb86ef0
Author: Christian Hergert <chergert redhat com>
Date: Fri May 17 20:15:13 2019 -0700
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 0175d9d..4cb2dda 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),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]