summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-14 23:26:42 (EST)
committer Patrick McDermott <pj@pehjota.net>2017-11-14 23:26:42 (EST)
commit07d640ae1b1125c1f079b7422140b8e70ee9da9c (patch)
treeedb82fbad32bde2d8ec80ca541c907a017793c8e /src
parent3d570ce5ac40a1a05f41fe8a68581cc49ea81a60 (diff)
downloadmarquee-07d640ae1b1125c1f079b7422140b8e70ee9da9c.zip
marquee-07d640ae1b1125c1f079b7422140b8e70ee9da9c.tar.gz
marquee-07d640ae1b1125c1f079b7422140b8e70ee9da9c.tar.bz2
mq_web_view_grab_focus(): New function
Diffstat (limited to 'src')
-rw-r--r--src/web-view.c6
-rw-r--r--src/web-view.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/src/web-view.c b/src/web-view.c
index d018dcf..5d90b0c 100644
--- a/src/web-view.c
+++ b/src/web-view.c
@@ -556,3 +556,9 @@ mq_web_view_save(MqWebView *web_view)
{
web_view->scheme_methods->save_file(web_view, &web_view->scheme);
}
+
+void
+mq_web_view_grab_focus(MqWebView *web_view)
+{
+ gtk_widget_grab_focus(GTK_WIDGET(web_view));
+}
diff --git a/src/web-view.h b/src/web-view.h
index 0da60e0..7fff164 100644
--- a/src/web-view.h
+++ b/src/web-view.h
@@ -89,6 +89,9 @@ mq_web_view_open(MqWebView *web_view);
void
mq_web_view_save(MqWebView *web_view);
+void
+mq_web_view_grab_focus(MqWebView *web_view);
+
G_END_DECLS
#endif /* MQ_WEB_VIEW_H */