[gnome-software/1152-carousel-arrow-buttons-hide-focus-states-when-not-hovering] gs-featured-carousel: Do not let focus arrow buttons on click
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1152-carousel-arrow-buttons-hide-focus-states-when-not-hovering] gs-featured-carousel: Do not let focus arrow buttons on click
- Date: Mon, 12 Apr 2021 14:14:58 +0000 (UTC)
commit 981dda15208dd2233d2a81df93bad0f412beeab5
Author: Milan Crha <mcrha redhat com>
Date: Mon Apr 12 16:13:14 2021 +0200
gs-featured-carousel: Do not let focus arrow buttons on click
They cannot be focused using keyboard, thus do not let them focus after
clicking on them. That helps to not draw the "focused" state on them too.
Closes https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1152
src/gs-featured-carousel.ui | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-featured-carousel.ui b/src/gs-featured-carousel.ui
index 1c2f8b790..988fa1635 100644
--- a/src/gs-featured-carousel.ui
+++ b/src/gs-featured-carousel.ui
@@ -31,7 +31,8 @@
<object class="GtkButton" id="previous_button">
<property name="visible">True</property>
<property name="use-underline">True</property>
- <property name="can-focus">True</property>
+ <property name="can-focus">False</property>
+ <property name="focus-on-click">False</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="width-request">56</property>
@@ -61,7 +62,8 @@
<object class="GtkButton" id="next_button">
<property name="visible">True</property>
<property name="use-underline">True</property>
- <property name="can-focus">True</property>
+ <property name="can-focus">False</property>
+ <property name="focus-on-click">False</property>
<property name="halign">end</property>
<property name="valign">center</property>
<property name="width-request">56</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]