[gnome-builder/gnome-builder-43] libide/gui: return to most recent page after hiding search
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-43] libide/gui: return to most recent page after hiding search
- Date: Thu, 22 Sep 2022 07:37:37 +0000 (UTC)
commit 03b5fe8cf4c1721e749fd54a76863ac175f24ea7
Author: Christian Hergert <chergert redhat com>
Date: Thu Sep 22 00:36:38 2022 -0700
libide/gui: return to most recent page after hiding search
src/libide/gui/ide-search-popover.c | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/src/libide/gui/ide-search-popover.c b/src/libide/gui/ide-search-popover.c
index 7c80707d2..c3a90cb78 100644
--- a/src/libide/gui/ide-search-popover.c
+++ b/src/libide/gui/ide-search-popover.c
@@ -97,7 +97,17 @@ ide_search_popover_hide_action (GtkWidget *widget,
const char *action_name,
GVariant *param)
{
+ IdeWorkspace *workspace;
+ IdePage *page;
+
+ g_assert (IDE_IS_SEARCH_POPOVER (widget));
+
+ workspace = ide_widget_get_workspace (widget);
+ page = ide_workspace_get_most_recent_page (workspace);
+
gtk_popover_popdown (GTK_POPOVER (widget));
+
+ gtk_widget_grab_focus (GTK_WIDGET (page));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]