diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-11-14 23:09:33 (EST) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-11-14 23:09:33 (EST) |
commit | 0da420729ff5249c31de1744f216b40395db0e67 (patch) | |
tree | 0833724b828f825e1e378d92a1a44eddbd1cf4b0 /src | |
parent | 3099827d2d89cb009bd19c1836c35b98cbafc278 (diff) | |
download | marquee-0da420729ff5249c31de1744f216b40395db0e67.zip marquee-0da420729ff5249c31de1744f216b40395db0e67.tar.gz marquee-0da420729ff5249c31de1744f216b40395db0e67.tar.bz2 |
mq_uri_entry_grab_focus(): New function
Diffstat (limited to 'src')
-rw-r--r-- | src/toolbars/navigation/uri-entry.c | 6 | ||||
-rw-r--r-- | src/toolbars/navigation/uri-entry.h | 3 |
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 */ |