[gnome-builder/wip/gtk4-port] plugins/web-browser: raise/focus browser page when adding



commit 5ffc0e9f8653fc601f7e34f9aded3e23b87da899
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]