Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/hulahop-web-view.cpp8
-rw-r--r--src/hulahop-web-view.h2
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);