summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/toolbars/navigation/uri-entry.c6
-rw-r--r--src/toolbars/navigation/uri-entry.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/src/toolbars/navigation/uri-entry.c b/src/toolbars/navigation/uri-entry.c
index 2a76f7c..0781596 100644
--- a/src/toolbars/navigation/uri-entry.c
+++ b/src/toolbars/navigation/uri-entry.c
@@ -309,3 +309,9 @@ mq_uri_entry_new(MqWebView *web_view, const gchar *uri)
"uri", uri,
NULL);
}
+
+void
+mq_uri_entry_grab_focus(MqUriEntry *uri_entry)
+{
+ gtk_widget_grab_focus(uri_entry->uri_entry);
+}
diff --git a/src/toolbars/navigation/uri-entry.h b/src/toolbars/navigation/uri-entry.h
index 046d243..1709df3 100644
--- a/src/toolbars/navigation/uri-entry.h
+++ b/src/toolbars/navigation/uri-entry.h
@@ -50,6 +50,9 @@ mq_uri_entry_get_type(void);
GtkToolItem *
mq_uri_entry_new(MqWebView *web_view, const gchar *uri);
+void
+mq_uri_entry_grab_focus(MqUriEntry *uri_entry);
+
G_END_DECLS
#endif /* MQ_TOOLBARS_NAVIGATION_URI_ENTRY_H */