summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/notebook.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/notebook.c b/src/notebook.c
index 4919b0c..0185bdf 100644
--- a/src/notebook.c
+++ b/src/notebook.c
@@ -367,6 +367,10 @@ mq_notebook_insert_top(MqNotebook *notebook, const gchar *uri,
mq_tree_position(node) - 1);
}
+ if (!uri || !uri[0]) {
+ mq_tab_page_focus_uri_entry(node->page);
+ }
+
return node->page;
}
@@ -390,6 +394,9 @@ mq_notebook_insert_sibling(MqNotebook *notebook, const gchar *uri,
notebook->current_page = node->page;
gtk_notebook_set_current_page(GTK_NOTEBOOK(notebook),
mq_tree_position(node) - 1);
+ if (!uri || !uri[0]) {
+ mq_tab_page_focus_uri_entry(node->page);
+ }
}
return node->page;
@@ -415,6 +422,9 @@ mq_notebook_insert_child(MqNotebook *notebook, const gchar *uri,
notebook->current_page = node->page;
gtk_notebook_set_current_page(GTK_NOTEBOOK(notebook),
mq_tree_position(node) - 1);
+ if (!uri || !uri[0]) {
+ mq_tab_page_focus_uri_entry(node->page);
+ }
}
return node->page;