diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/ephy-window.c | 11 |
2 files changed, 17 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2003-09-15 Marco Pesenti Gritti <marco@gnome.org> + + * src/ephy-window.c: (ephy_window_load_url): + + Activate the embed when necessary. + 2003-09-15 Christian Persch <chpe@cvs.gnome.org> * src/ephy-notebook.c: (drag_start), (drag_stop), diff --git a/src/ephy-window.c b/src/ephy-window.c index 2de01ea6d..1700a3312 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -1567,6 +1567,16 @@ ephy_window_remove_tab (EphyWindow *window, embed); } +/** + * ephy_window_load_url: + * @window: a #EphyWindow + * @url: the url to load + * + * Load a new url in the active tab of the window. + * Unlike ephy_embed_load_url this function activate + * the embed. + * + **/ void ephy_window_load_url (EphyWindow *window, const char *url) @@ -1579,6 +1589,7 @@ ephy_window_load_url (EphyWindow *window, g_return_if_fail (url != NULL); ephy_embed_load_url (embed, url); + gtk_widget_grab_focus (GTK_BIN (embed)->child); } void ephy_window_activate_location (EphyWindow *window) |