diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-11-14 17:53:28 (EST) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-11-14 17:53:28 (EST) |
commit | 3099827d2d89cb009bd19c1836c35b98cbafc278 (patch) | |
tree | 7cf7dba8d44c59bf3d94e6e2c489acadc820c96e /src/toolbars | |
parent | b417eae36dab90a662cd464124299b65ab773052 (diff) | |
download | marquee-3099827d2d89cb009bd19c1836c35b98cbafc278.zip marquee-3099827d2d89cb009bd19c1836c35b98cbafc278.tar.gz marquee-3099827d2d89cb009bd19c1836c35b98cbafc278.tar.bz2 |
MqUriEntry: Set input purpose
This is a hint for on-screen keyboards and similar input methods to
choose which keys would be most useful to present to the user.
Diffstat (limited to 'src/toolbars')
-rw-r--r-- | src/toolbars/navigation/uri-entry.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/toolbars/navigation/uri-entry.c b/src/toolbars/navigation/uri-entry.c index 3862801..2a76f7c 100644 --- a/src/toolbars/navigation/uri-entry.c +++ b/src/toolbars/navigation/uri-entry.c @@ -284,6 +284,8 @@ mq_uri_entry_init(MqUriEntry *uri_entry) gtk_entry_set_icon_from_icon_name(GTK_ENTRY(uri_entry->uri_entry), GTK_ENTRY_ICON_PRIMARY, "text-html"); gtk_entry_set_progress_fraction(GTK_ENTRY(uri_entry->uri_entry), 0.0); + gtk_entry_set_input_purpose(GTK_ENTRY(uri_entry->uri_entry), + GTK_INPUT_PURPOSE_URL); g_signal_connect(uri_entry->uri_entry, "activate", G_CALLBACK(uri_activate_cb), uri_entry); gtk_container_add(GTK_CONTAINER(uri_entry), uri_entry->uri_entry); |