From fe86acf314161823a648dd480e55915dc184e057 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Wed, 13 Jun 2007 08:39:27 +0000 Subject: Implement grab_focus --- (limited to 'src') diff --git a/src/hulahop-web-view.cpp b/src/hulahop-web-view.cpp index dc34326..bd6f14e 100644 --- a/src/hulahop-web-view.cpp +++ b/src/hulahop-web-view.cpp @@ -299,3 +299,11 @@ hulahop_web_view_create_window(HulahopWebView *web_view) GTK_WIDGET_UNSET_FLAGS(GTK_WIDGET(web_view), GTK_NO_WINDOW); } + +void +hulahop_web_view_grab_focus(HulahopWebView *web_view) +{ + if (web_view->mozilla_widget) { + gtk_widget_grab_focus(web_view->mozilla_widget); + } +} diff --git a/src/hulahop-web-view.h b/src/hulahop-web-view.h index 68610b5..d90a46f 100644 --- a/src/hulahop-web-view.h +++ b/src/hulahop-web-view.h @@ -36,6 +36,8 @@ typedef struct _HulahopWebViewClass HulahopWebViewClass; #define HULAHOP_WEB_VIEW_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS((object), HULAHOP_TYPE_WEB_VIEW, HulahopWebViewClass)) GType hulahop_web_view_get_type (void); +void hulahop_web_view_grab_focus (HulahopWebView *web_view); + void hulahop_web_view_create_window (HulahopWebView *web_view); PyObject *hulahop_web_view_get_browser (HulahopWebView *web_view); PyObject *hulahop_web_view_get_window_root (HulahopWebView *web_view); -- cgit v0.9.1