[gnome-software] Rationalize focus chain on details page
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Rationalize focus chain on details page
- Date: Wed, 16 Oct 2013 09:59:30 +0000 (UTC)
commit 3ae9e6c8cce607a48322d2aa9bf465fee9330166
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Oct 16 05:58:31 2013 -0400
Rationalize focus chain on details page
Don't make the title in the header selectable, and don't
make the descriptive text focusable. This makes for a
more natural experience when tabbing through this page.
src/gnome-software.ui | 2 +-
src/gs-shell-details.c | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-software.ui b/src/gnome-software.ui
index 39dd337..6c74145 100644
--- a/src/gnome-software.ui
+++ b/src/gnome-software.ui
@@ -114,7 +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>
+ <property name="selectable">False</property>
</object>
<packing>
<property name="expand">False</property>
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index bc21fd1..60a23a1 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -332,6 +332,7 @@ gs_shell_details_set_description (GsShellDetails *shell_details, const gchar *tm
gtk_label_set_max_width_chars (GTK_LABEL (para), 80);
gtk_label_set_selectable (GTK_LABEL (para), TRUE);
gtk_widget_set_visible (para, TRUE);
+ gtk_widget_set_can_focus (para, FALSE);
g_object_set (para,
"xalign", 0.0,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]