[libpanel] dock: grab focus after revealing a dock child
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpanel] dock: grab focus after revealing a dock child
- Date: Tue, 6 Sep 2022 22:36:24 +0000 (UTC)
commit 896a6be096b893eaf12163cc44311ec64ff51a47
Author: Christian Hergert <chergert redhat com>
Date: Tue Sep 6 15:35:43 2022 -0700
dock: grab focus after revealing a dock child
src/panel-dock.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/panel-dock.c b/src/panel-dock.c
index 0563fe3..ba2fa89 100644
--- a/src/panel-dock.c
+++ b/src/panel-dock.c
@@ -176,6 +176,10 @@ set_reveal (PanelDock *self,
if (value != panel_dock_child_get_reveal_child (PANEL_DOCK_CHILD (child)))
{
panel_dock_child_set_reveal_child (PANEL_DOCK_CHILD (child), value);
+
+ if (value)
+ gtk_widget_grab_focus (child);
+
return TRUE;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]