From 3099827d2d89cb009bd19c1836c35b98cbafc278 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 14 Nov 2017 17:53:28 -0500 Subject: 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. --- (limited to 'src') 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); -- cgit v0.9.1