diff options
author | Marco Pesenti Gritti <marco@gnome.org> | 2003-09-16 02:19:01 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2003-09-16 02:19:01 +0800 |
commit | c50979194745b2678e03a9067fff1d3ad00d5d85 (patch) | |
tree | f432822ca1060be1d79524e6906081547ebd7cbf /src | |
parent | 39eda95f17c3d2cf1cb661c019e3f55f30a73ea0 (diff) | |
download | gsoc2013-epiphany-c50979194745b2678e03a9067fff1d3ad00d5d85.tar.gz gsoc2013-epiphany-c50979194745b2678e03a9067fff1d3ad00d5d85.tar.zst gsoc2013-epiphany-c50979194745b2678e03a9067fff1d3ad00d5d85.zip |
Activate the embed when necessary.
2003-09-15 Marco Pesenti Gritti <marco@gnome.org>
* src/ephy-window.c: (ephy_window_load_url):
Activate the embed when necessary.
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-window.c | 11 |
1 files changed, 11 insertions, 0 deletions
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) |