[gnome-logs/wip/latest-mockup: 3/6] Make labels in detail view selectable
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-logs/wip/latest-mockup: 3/6] Make labels in detail view selectable
- Date: Wed, 9 Oct 2013 09:23:22 +0000 (UTC)
commit 098d0f0167099192076d16eda5d257d5ff0365ce
Author: David King <davidk gnome org>
Date: Tue Oct 8 12:50:43 2013 +0100
Make labels in detail view selectable
Allow the labels shown in the details view to be selected, and therefore
copied easily.
src/gl-eventview.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gl-eventview.c b/src/gl-eventview.c
index a2f1f02..13349f1 100644
--- a/src/gl-eventview.c
+++ b/src/gl-eventview.c
@@ -147,6 +147,7 @@ on_listbox_row_activated (GtkListBox *listbox,
label = gtk_label_new (time);
gtk_widget_set_hexpand (label, TRUE);
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
+ gtk_label_set_selectable (GTK_LABEL (label), TRUE);
style = gtk_widget_get_style_context (label);
gtk_style_context_add_class (style, "detail-time");
gtk_grid_attach (GTK_GRID (grid), label, 1, 0, 1, 1);
@@ -155,12 +156,14 @@ on_listbox_row_activated (GtkListBox *listbox,
label = gtk_label_new (result->message);
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
+ gtk_label_set_selectable (GTK_LABEL (label), TRUE);
style = gtk_widget_get_style_context (label);
gtk_style_context_add_class (style, "detail-message");
gtk_grid_attach (GTK_GRID (grid), label, 0, 1, 2, 1);
label = gtk_label_new (result->catalog);
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
+ gtk_label_set_selectable (GTK_LABEL (label), TRUE);
style = gtk_widget_get_style_context (label);
gtk_style_context_add_class (style, "detail-catalog");
gtk_grid_attach (GTK_GRID (grid), label, 0, 2, 2, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]