aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-navigation-history-action.c
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-01-17 02:08:52 +0800
committerXan Lopez <xan@igalia.com>2012-01-17 02:08:52 +0800
commit80013eb51b18d612ba3be1181a3797279419db47 (patch)
treed93d27a65b1fbc1d96650e1c49d98669ec936adf /src/ephy-navigation-history-action.c
parentda544577399cfb2f243e0c26515a0dc79163c02e (diff)
downloadgsoc2013-epiphany-80013eb51b18d612ba3be1181a3797279419db47.tar
gsoc2013-epiphany-80013eb51b18d612ba3be1181a3797279419db47.tar.gz
gsoc2013-epiphany-80013eb51b18d612ba3be1181a3797279419db47.tar.bz2
gsoc2013-epiphany-80013eb51b18d612ba3be1181a3797279419db47.tar.lz
gsoc2013-epiphany-80013eb51b18d612ba3be1181a3797279419db47.tar.xz
gsoc2013-epiphany-80013eb51b18d612ba3be1181a3797279419db47.tar.zst
gsoc2013-epiphany-80013eb51b18d612ba3be1181a3797279419db47.zip
ephy-navigation-history-action: make sure embed is focused after navigation
The focus was staying in the proxy buttons, that's not OK.
Diffstat (limited to 'src/ephy-navigation-history-action.c')
-rw-r--r--src/ephy-navigation-history-action.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ephy-navigation-history-action.c b/src/ephy-navigation-history-action.c
index d8c9fb43c..cac0735cf 100644
--- a/src/ephy-navigation-history-action.c
+++ b/src/ephy-navigation-history-action.c
@@ -95,6 +95,7 @@ action_activate (GtkAction *action)
web_view = EPHY_GET_WEBKIT_WEB_VIEW_FROM_EMBED (embed);
}
webkit_web_view_go_back (web_view);
+ gtk_widget_grab_focus (GTK_WIDGET (embed));
} else if (history_action->priv->direction == EPHY_NAVIGATION_HISTORY_DIRECTION_FORWARD) {
if (ephy_gui_is_middle_click () ||
ephy_link_action_get_button (EPHY_LINK_ACTION (history_action)) == 2) {
@@ -119,6 +120,7 @@ action_activate (GtkAction *action)
webkit_web_view_load_uri (web_view, forward_uri);
} else {
webkit_web_view_go_forward (web_view);
+ gtk_widget_grab_focus (GTK_WIDGET (embed));
}
}
}