From 0da420729ff5249c31de1744f216b40395db0e67 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 14 Nov 2017 23:09:33 -0500 Subject: mq_uri_entry_grab_focus(): New function --- (limited to 'src') 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 */ -- cgit v0.9.1