From 21b4183abf783b1d23aa7d67ef927456a677b244 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 14 Nov 2017 23:28:51 -0500 Subject: mq_notebook_insert_*(): Focus Web view of inserted tab page --- (limited to 'src') diff --git a/src/notebook.c b/src/notebook.c index 0185bdf..57740c0 100644 --- a/src/notebook.c +++ b/src/notebook.c @@ -369,6 +369,8 @@ mq_notebook_insert_top(MqNotebook *notebook, const gchar *uri, if (!uri || !uri[0]) { mq_tab_page_focus_uri_entry(node->page); + } else { + mq_tab_page_focus_web_view(node->page); } return node->page; @@ -396,6 +398,8 @@ mq_notebook_insert_sibling(MqNotebook *notebook, const gchar *uri, mq_tree_position(node) - 1); if (!uri || !uri[0]) { mq_tab_page_focus_uri_entry(node->page); + } else { + mq_tab_page_focus_web_view(node->page); } } @@ -424,6 +428,8 @@ mq_notebook_insert_child(MqNotebook *notebook, const gchar *uri, mq_tree_position(node) - 1); if (!uri || !uri[0]) { mq_tab_page_focus_uri_entry(node->page); + } else { + mq_tab_page_focus_web_view(node->page); } } -- cgit v0.9.1