[sysprof/wip/chergert/sysprof-3] libsysprof-ui: allow selecting multiple rows



commit 7c163de38cc357aef1400236fe9212962c7f758b
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]