]> spindle.queued.net Git - midori/commitdiff
Validate URI in Manage Search Engines dialogue
authorChristian Dywan <christian@twotoasts.de>
Mon, 16 May 2011 00:37:51 +0000 (02:37 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 16 May 2011 00:37:51 +0000 (02:37 +0200)
midori/midori-searchaction.c

index 4aa1bb7ab5a5ba181406a7f7dbebd29eaa0d9c12..1641afdcd964e71d64e9dac1d9d65c1df2366d5d 100644 (file)
@@ -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)