summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-14 23:27:51 (EST)
committer Patrick McDermott <pj@pehjota.net>2017-11-14 23:27:51 (EST)
commit5c37cf709b4154873c10f1a5652bcea0827b3c3e (patch)
tree2e5e2a223ed4d29279cda2dcf8d280289b3a8f68
parent07d640ae1b1125c1f079b7422140b8e70ee9da9c (diff)
downloadmarquee-5c37cf709b4154873c10f1a5652bcea0827b3c3e.zip
marquee-5c37cf709b4154873c10f1a5652bcea0827b3c3e.tar.gz
marquee-5c37cf709b4154873c10f1a5652bcea0827b3c3e.tar.bz2
mq_tab_page_focus_web_view(): New function
-rw-r--r--src/tab-page.c6
-rw-r--r--src/tab-page.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/src/tab-page.c b/src/tab-page.c
index 3cfd957..29f1721 100644
--- a/src/tab-page.c
+++ b/src/tab-page.c
@@ -312,3 +312,9 @@ mq_tab_page_focus_uri_entry(MqTabPage *tab_page)
mq_navigation_toolbar_focus_uri_entry(
MQ_NAVIGATION_TOOLBAR(tab_page->navigation_toolbar));
}
+
+void
+mq_tab_page_focus_web_view(MqTabPage *tab_page)
+{
+ mq_web_view_grab_focus(MQ_WEB_VIEW(tab_page->web_view));
+}
diff --git a/src/tab-page.h b/src/tab-page.h
index 03f50ed..6ec835e 100644
--- a/src/tab-page.h
+++ b/src/tab-page.h
@@ -98,6 +98,9 @@ mq_tab_page_end_scrolling_tab_labels(MqTabPage *node);
void
mq_tab_page_focus_uri_entry(MqTabPage *tab_page);
+void
+mq_tab_page_focus_web_view(MqTabPage *tab_page);
+
G_END_DECLS
#endif /* MQ_TAB_PAGE_H */