[sysprof] libsysprof-ui: allow text to be selectable



commit 55dfb81db39cf4a0885a5916c43390e5aa9965f4
Author: Christian Hergert <chergert redhat com>
Date:   Thu May 16 19:17:37 2019 -0700

    libsysprof-ui: allow text to be selectable

 src/libsysprof-ui/sysprof-capture-view.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/libsysprof-ui/sysprof-capture-view.c b/src/libsysprof-ui/sysprof-capture-view.c
index a97314f..8d2a36d 100644
--- a/src/libsysprof-ui/sysprof-capture-view.c
+++ b/src/libsysprof-ui/sysprof-capture-view.c
@@ -155,6 +155,7 @@ add_marks_to_details (SysprofCaptureView *self)
         continue;
 
       left_label = g_object_new (GTK_TYPE_LABEL,
+                                 "selectable", TRUE,
                                  "visible", TRUE,
                                  "xalign", 1.0f,
                                  "label", st->name,
@@ -170,6 +171,7 @@ add_marks_to_details (SysprofCaptureView *self)
                              st->avg / (gdouble)NSEC_PER_SEC);
       center_label = g_object_new (GTK_TYPE_LABEL,
                                    "label", str,
+                                   "selectable", TRUE,
                                    "use-markup", TRUE,
                                    "visible", TRUE,
                                    "xalign", 0.0f,


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