diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-06-13 08:39:27 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-06-13 08:39:27 (GMT) |
commit | fe86acf314161823a648dd480e55915dc184e057 (patch) | |
tree | a5a9dd31bf456252c18dbed2047b5c5a622b1ec6 /src | |
parent | b6344b9e64a06ea452a42d0e77204f7f072cc9c0 (diff) |
Implement grab_focus
Diffstat (limited to 'src')
-rw-r--r-- | src/hulahop-web-view.cpp | 8 | ||||
-rw-r--r-- | src/hulahop-web-view.h | 2 |
2 files changed, 10 insertions, 0 deletions
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); |