diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-11-14 23:26:42 (EST) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-11-14 23:26:42 (EST) |
commit | 07d640ae1b1125c1f079b7422140b8e70ee9da9c (patch) | |
tree | edb82fbad32bde2d8ec80ca541c907a017793c8e | |
parent | 3d570ce5ac40a1a05f41fe8a68581cc49ea81a60 (diff) | |
download | marquee-07d640ae1b1125c1f079b7422140b8e70ee9da9c.zip marquee-07d640ae1b1125c1f079b7422140b8e70ee9da9c.tar.gz marquee-07d640ae1b1125c1f079b7422140b8e70ee9da9c.tar.bz2 |
mq_web_view_grab_focus(): New function
-rw-r--r-- | src/web-view.c | 6 | ||||
-rw-r--r-- | src/web-view.h | 3 |
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 */ |