[epiphany] ephy-notebook: Set focus to embed on notebook tab switch



commit 6bce9cbeb73ff5dc1ee9f8ea7af3bf887906d1b9
Author: Jan-Michael Brummer <jan brummer tabos org>
Date:   Sun Oct 21 20:32:05 2018 +0200

    ephy-notebook: Set focus to embed on notebook tab switch
    
    Fixes accidently loading a wrong page using the new dazzle url entry.

 src/ephy-notebook.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c
index 4a05b933b..b0c4b4d14 100644
--- a/src/ephy-notebook.c
+++ b/src/ephy-notebook.c
@@ -253,6 +253,7 @@ ephy_notebook_switch_page_cb (GtkNotebook *notebook,
   GtkWidget *child;
 
   child = gtk_notebook_get_nth_page (notebook, page_num);
+  gtk_widget_grab_focus (child);
 
   /* Remove the old page, we dont want to grow unnecessarily
    * the list */


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