[epiphany] ephy-navigation-history-action: make sure embed is focused after navigation



commit 80013eb51b18d612ba3be1181a3797279419db47
Author: Xan Lopez <xan igalia com>
Date:   Mon Jan 16 19:08:52 2012 +0100

    ephy-navigation-history-action: make sure embed is focused after navigation
    
    The focus was staying in the proxy buttons, that's not OK.

 src/ephy-navigation-history-action.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-navigation-history-action.c b/src/ephy-navigation-history-action.c
index d8c9fb4..cac0735 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));
     }
   }
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]