[gtk/wip/matthiasc/can-focus] color editor: Make the sample non-focusable again
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/can-focus] color editor: Make the sample non-focusable again
- Date: Wed, 8 Apr 2020 12:11:18 +0000 (UTC)
commit 5d8d11c82674c80c4b6621f7b220383a965ce9e4
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Apr 8 08:08:46 2020 -0400
color editor: Make the sample non-focusable again
This is one of the situations, where can-focus can still
be used to tweak focus behavior of leaf widgets. Color
swatches are focusable by default to allow selecting colors
with the keyboard. But when used as color samples, they
should not take focus.
gtk/ui/gtkcoloreditor.ui | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gtk/ui/gtkcoloreditor.ui b/gtk/ui/gtkcoloreditor.ui
index f961866edb..a66a29adb6 100644
--- a/gtk/ui/gtkcoloreditor.ui
+++ b/gtk/ui/gtkcoloreditor.ui
@@ -57,6 +57,7 @@
<property name="rgba">rgb(255,255,255)</property>
<property name="selectable">False</property>
<property name="has-menu">False</property>
+ <property name="can-focus">False</property>
<layout>
<property name="left-attach">1</property>
<property name="top-attach">0</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]