[gnome-builder/wip/gtk4-port: 1340/1774] plugins/web-browser: raise/focus browser page when adding
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 1340/1774] plugins/web-browser: raise/focus browser page when adding
- Date: Mon, 11 Jul 2022 22:31:42 +0000 (UTC)
commit 733b328677a1b008a91c5eec656f2f081eec1ef2
Author: Christian Hergert <chergert redhat com>
Date: Fri Jun 3 14:31:35 2022 -0700
plugins/web-browser: raise/focus browser page when adding
src/plugins/web-browser/gbp-web-browser-workspace-addin.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/plugins/web-browser/gbp-web-browser-workspace-addin.c
b/src/plugins/web-browser/gbp-web-browser-workspace-addin.c
index d9b15112a..d9ad08906 100644
--- a/src/plugins/web-browser/gbp-web-browser-workspace-addin.c
+++ b/src/plugins/web-browser/gbp-web-browser-workspace-addin.c
@@ -117,6 +117,8 @@ web_browser_new_page_action (GbpWebBrowserWorkspaceAddin *self,
ide_webkit_page_load_uri (page, "https://google.com/");
ide_workspace_add_page (self->workspace, IDE_PAGE (page), position);
+ panel_widget_raise (PANEL_WIDGET (page));
+ gtk_widget_grab_focus (GTK_WIDGET (page));
IDE_EXIT;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]