[Xfce4-commits] <midori:master> Set URL purpose on URL input entries
Christian Dywan
noreply at xfce.org
Wed Nov 7 01:22:04 CET 2012
Updating branch refs/heads/master
to 393e6c01e90952afcddfe9f2ca4aad0549817607 (commit)
from ea953650e2a0ac8fa27597e8f99e3e4a5aab509e (commit)
commit 393e6c01e90952afcddfe9f2ca4aad0549817607
Author: Christian Dywan <christian at twotoasts.de>
Date: Tue Nov 6 23:43:03 2012 +0100
Set URL purpose on URL input entries
katze/katze-utils.c | 3 +++
midori/midori-locationaction.c | 3 +++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/katze/katze-utils.c b/katze/katze-utils.c
index 4987a3a..e2ba19a 100644
--- a/katze/katze-utils.c
+++ b/katze/katze-utils.c
@@ -1590,6 +1590,9 @@ GtkWidget*
katze_uri_entry_new (GtkWidget* other_widget)
{
GtkWidget* entry = gtk_entry_new ();
+ #if GTK_CHECK_VERSION (3, 6, 0)
+ gtk_entry_set_input_purpose (GTK_ENTRY (entry), GTK_INPUT_PURPOSE_URL);
+ #endif
gtk_entry_set_icon_from_gicon (GTK_ENTRY (entry), GTK_ENTRY_ICON_PRIMARY,
g_themed_icon_new_with_default_fallbacks ("text-html-symbolic"));
diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c
index 6449244..344d4cb 100644
--- a/midori/midori-locationaction.c
+++ b/midori/midori-locationaction.c
@@ -713,6 +713,9 @@ midori_location_action_create_tool_item (GtkAction* action)
gtk_container_add (GTK_CONTAINER (toolitem), alignment);
entry = gtk_icon_entry_new ();
+ #if GTK_CHECK_VERSION (3, 6, 0)
+ gtk_entry_set_input_purpose (GTK_ENTRY (entry), GTK_INPUT_PURPOSE_URL);
+ #endif
gtk_icon_entry_set_icon_highlight (GTK_ICON_ENTRY (entry),
GTK_ICON_ENTRY_PRIMARY, TRUE);
gtk_icon_entry_set_icon_highlight (GTK_ICON_ENTRY (entry),
More information about the Xfce4-commits
mailing list