[libdazzle: 1/2] dzl-dock-widget: Don't set can-focus to True
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle: 1/2] dzl-dock-widget: Don't set can-focus to True
- Date: Thu, 29 Jul 2021 23:02:45 +0000 (UTC)
commit 48af7038c133298bd061f1a79f25732634fa9720
Author: Vanadiae <vanadiae35 gmail com>
Date: Thu Jul 29 21:01:34 2021 +0000
dzl-dock-widget: Don't set can-focus to True
Currently when moving the focus with the keyboard (tab, arrow keys), the
focus always moves in the Tab direction, without ever following what
focus move direction was requested.
This is because the DzlDockWidget tells it supports receiving the
keyboard focus, which is not the case: it is not e.g. a button or entry,
instead it's more a dock container than anything else.
So this commit fixes it by dropping the line that set the can-focus
property to True.
src/panel/dzl-dock-widget.c | 1 -
1 file changed, 1 deletion(-)
---
diff --git a/src/panel/dzl-dock-widget.c b/src/panel/dzl-dock-widget.c
index 4983041..11da5aa 100644
--- a/src/panel/dzl-dock-widget.c
+++ b/src/panel/dzl-dock-widget.c
@@ -254,7 +254,6 @@ static void
dzl_dock_widget_init (DzlDockWidget *self)
{
gtk_widget_set_has_window (GTK_WIDGET (self), FALSE);
- gtk_widget_set_can_focus (GTK_WIDGET (self), TRUE);
}
GtkWidget *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]