From 07d640ae1b1125c1f079b7422140b8e70ee9da9c Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 14 Nov 2017 23:26:42 -0500 Subject: mq_web_view_grab_focus(): New function --- (limited to 'src') 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 */ -- cgit v0.9.1