summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-14 23:28:51 (EST)
committer Patrick McDermott <pj@pehjota.net>2017-11-14 23:28:51 (EST)
commit21b4183abf783b1d23aa7d67ef927456a677b244 (patch)
tree429778435ed4b5a5146ad8654c66944d95f1c366
parent5c37cf709b4154873c10f1a5652bcea0827b3c3e (diff)
downloadmarquee-21b4183abf783b1d23aa7d67ef927456a677b244.zip
marquee-21b4183abf783b1d23aa7d67ef927456a677b244.tar.gz
marquee-21b4183abf783b1d23aa7d67ef927456a677b244.tar.bz2
mq_notebook_insert_*(): Focus Web view of inserted tab page
-rw-r--r--src/notebook.c6
1 files changed, 6 insertions, 0 deletions
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);
}
}