[gtk/wip/matthiasc/can-focus: 26/27] 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: 26/27] color editor: Make the sample non-focusable again
- Date: Thu, 9 Apr 2020 00:25:11 +0000 (UTC)
commit 0331fb07a02fc4835085da0c0f7fb67efbc6e351
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]