[gnome-builder] grep: Focus pane when revealing it with Ctrl+Shift+Alt+F
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] grep: Focus pane when revealing it with Ctrl+Shift+Alt+F
- Date: Tue, 9 Aug 2022 21:27:36 +0000 (UTC)
commit e7453a4180191b5aa21edeb32cd4757f5f48ee07
Author: vanadiae <vanadiae35 gmail com>
Date: Sat Aug 6 17:19:29 2022 +0200
grep: Focus pane when revealing it with Ctrl+Shift+Alt+F
It was done in the GTK3 port with the ide_widget_reveal_and_grab()
method, but when porting the grabbing wasn't kept, likely as an oversight
since it does it just fine in the main gbp-grep-panel.c code.
src/plugins/grep/gbp-grep-workspace-addin.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/plugins/grep/gbp-grep-workspace-addin.c b/src/plugins/grep/gbp-grep-workspace-addin.c
index f2e0a3d00..48fb6e79e 100644
--- a/src/plugins/grep/gbp-grep-workspace-addin.c
+++ b/src/plugins/grep/gbp-grep-workspace-addin.c
@@ -45,6 +45,7 @@ panel_show_action (GbpGrepWorkspaceAddin *self,
g_assert (GBP_IS_GREP_WORKSPACE_ADDIN (self));
panel_widget_raise (PANEL_WIDGET (self->panel));
+ gtk_widget_grab_focus (GTK_WIDGET (self->panel));
}
IDE_DEFINE_ACTION_GROUP (GbpGrepWorkspaceAddin, gbp_grep_workspace_addin, {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]