From 941de06806cb6c145ac2b522ad276add5bdbb2fd Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Fri, 29 Jul 2005 20:05:05 +0000 Subject: Realise the embed first before grabbing focus on it. 2005-07-29 Christian Persch * src/ephy-shell.c: (ephy_shell_new_tab_full): Realise the embed first before grabbing focus on it. --- src/ephy-shell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ephy-shell.c b/src/ephy-shell.c index 02aec0cbd..5d9aaed4a 100644 --- a/src/ephy-shell.c +++ b/src/ephy-shell.c @@ -793,7 +793,8 @@ ephy_shell_new_tab_full (EphyShell *shell, } else if (embed != NULL) { - /* non-empty page, focus the page */ + /* non-empty page, focus the page. but make sure the widget is realised first! */ + gtk_widget_realize (GTK_WIDGET (embed)); ephy_embed_activate (embed); } } -- cgit v1.2.3