[gnome-software] Make text UI elements selectable
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Make text UI elements selectable
- Date: Mon, 14 Oct 2013 13:43:55 +0000 (UTC)
commit 4f95728960eeecad39bb1259fa2cd10e366af662
Author: Richard Hughes <richard hughsie com>
Date: Mon Oct 14 14:43:48 2013 +0100
Make text UI elements selectable
There's no reason to make these non-selectable.
src/gnome-software.ui | 11 +++++++++++
src/gs-shell-details.c | 1 +
2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-software.ui b/src/gnome-software.ui
index e47b546..7632357 100644
--- a/src/gnome-software.ui
+++ b/src/gnome-software.ui
@@ -114,6 +114,7 @@
<object class="GtkLabel" id="application_details_header">
<property name="can_focus">False</property>
<property name="label">GNU Image Manipulation Program</property>
+ <property name="selectable">True</property>
</object>
<packing>
<property name="expand">False</property>
@@ -752,6 +753,7 @@
<property name="margin_right">24</property>
<property name="margin_bottom">12</property>
<property name="xalign">0</property>
+ <property name="selectable">True</property>
<style>
<class name="application-details-title"/>
</style>
@@ -773,6 +775,7 @@
<property name="margin_right">24</property>
<property name="margin_bottom">28</property>
<property name="xalign">0</property>
+ <property name="selectable">True</property>
<style>
<class name="application-details-summary"/>
</style>
@@ -929,6 +932,7 @@
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label">0.12.3</property>
+ <property name="selectable">True</property>
</object>
<packing>
<property name="left_attach">1</property>
@@ -960,6 +964,7 @@
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label">May 12, 2012</property>
+ <property name="selectable">True</property>
</object>
<packing>
<property name="left_attach">1</property>
@@ -992,6 +997,7 @@
<property name="xalign">0</property>
<property name="label">Photos & Video</property>
<property name="ellipsize">end</property>
+ <property name="selectable">True</property>
</object>
<packing>
<property name="left_attach">1</property>
@@ -1025,6 +1031,7 @@
<property name="xalign">0</property>
<property name="label">GPL</property>
<property name="ellipsize">end</property>
+ <property name="selectable">True</property>
</object>
<packing>
<property name="left_attach">3</property>
@@ -1057,6 +1064,7 @@
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label">30 MB</property>
+ <property name="selectable">True</property>
</object>
<packing>
<property name="left_attach">3</property>
@@ -1090,6 +1098,7 @@
<property name="xalign">0</property>
<property name="label">Yorba</property>
<property name="ellipsize">end</property>
+ <property name="selectable">True</property>
</object>
<packing>
<property name="left_attach">3</property>
@@ -1472,6 +1481,7 @@
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label">Vector based drawing program</property>
+ <property name="selectable">True</property>
</object>
<packing>
<property name="expand">False</property>
@@ -1513,6 +1523,7 @@
* Moo
* bar</property>
<property name="wrap">True</property>
+ <property name="selectable">True</property>
</object>
</child>
</object>
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 8baa0b8..1c08421 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -330,6 +330,7 @@ gs_shell_details_set_description (GsShellDetails *shell_details, const gchar *tm
para = gtk_label_new (split[i]);
gtk_label_set_line_wrap (GTK_LABEL (para), TRUE);
gtk_label_set_max_width_chars (GTK_LABEL (para), 80);
+ gtk_label_set_selectable (GTK_LABEL (para), TRUE);
gtk_widget_set_visible (para, TRUE);
g_object_set (para,
"xalign", 0.0,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]