[Xfce4-commits] <midori:master> Validate URI in Manage Search Engines dialogue
Christian Dywan
noreply at xfce.org
Mon May 16 02:40:01 CEST 2011
Updating branch refs/heads/master
to 7d0c949a0c8942414ffd10119c1f36048118823b (commit)
from 2df03cfa2868d24316e9d76e929058a7383ce159 (commit)
commit 7d0c949a0c8942414ffd10119c1f36048118823b
Author: Christian Dywan <christian at twotoasts.de>
Date: Mon May 16 02:37:51 2011 +0200
Validate URI in Manage Search Engines dialogue
midori/midori-searchaction.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/midori/midori-searchaction.c b/midori/midori-searchaction.c
index 4aa1bb7..1641afd 100644
--- a/midori/midori-searchaction.c
+++ b/midori/midori-searchaction.c
@@ -967,7 +967,12 @@ midori_search_action_get_editor (MidoriSearchAction* search_action,
label = gtk_label_new_with_mnemonic (_("_Address:"));
gtk_size_group_add_widget (sizegroup, label);
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
- entry_uri = gtk_entry_new ();
+ entry_uri = katze_uri_entry_new (
+ #if GTK_CHECK_VERSION (2, 20, 0)
+ gtk_dialog_get_widget_for_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT));
+ #else
+ NULL);
+ #endif
gtk_entry_set_activates_default (GTK_ENTRY (entry_uri), TRUE);
if (!new_engine)
gtk_entry_set_text (GTK_ENTRY (entry_uri)
More information about the Xfce4-commits
mailing list