[sysprof/wip/chergert/sysprof-3] libsysprof-ui: allow text selection



commit 72ca195eae484b19e7954e7095ec5fb562489d94
Author: Christian Hergert <chergert redhat com>
Date:   Sat May 18 13:10:23 2019 -0700

    libsysprof-ui: allow text selection

 src/libsysprof-ui/sysprof-capture-view.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/libsysprof-ui/sysprof-capture-view.c b/src/libsysprof-ui/sysprof-capture-view.c
index 1066e5b..9fcce3e 100644
--- a/src/libsysprof-ui/sysprof-capture-view.c
+++ b/src/libsysprof-ui/sysprof-capture-view.c
@@ -196,6 +196,7 @@ add_marks_to_details (SysprofCaptureView *self)
                                                    NULL),
                                      g_object_new (GTK_TYPE_LABEL,
                                                    "label", minstr,
+                                                   "selectable", TRUE,
                                                    "xalign", 0.0f,
                                                    "visible", TRUE,
                                                    NULL));
@@ -209,6 +210,7 @@ add_marks_to_details (SysprofCaptureView *self)
                                                    NULL),
                                      g_object_new (GTK_TYPE_LABEL,
                                                    "label", maxstr,
+                                                   "selectable", TRUE,
                                                    "xalign", 0.0f,
                                                    "visible", TRUE,
                                                    NULL));
@@ -222,6 +224,7 @@ add_marks_to_details (SysprofCaptureView *self)
                                                    NULL),
                                      g_object_new (GTK_TYPE_LABEL,
                                                    "label", avgstr,
+                                                   "selectable", TRUE,
                                                    "xalign", 0.0f,
                                                    "visible", TRUE,
                                                    NULL));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]