From 5d360b065b60c9fcb9441c1f2d2cf05c0180f780 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Tue, 14 Apr 2009 19:19:50 +0200 Subject: [PATCH] Fix search engines without %s in the context menu --- midori/midori-view.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/midori/midori-view.c b/midori/midori-view.c index 3ac7c304..9c0568bb 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -894,12 +894,10 @@ midori_web_view_menu_search_web_activate_cb (GtkWidget* widget, g_object_get (view->settings, "location-entry-search", &search, NULL); if (strstr (search, "%s")) - { uri = g_strdup_printf (search, view->selected_text); - g_free (search); - } else - uri = search; + uri = g_strconcat (search, view->selected_text, NULL); + g_free (search); g_signal_emit (view, signals[NEW_TAB], 0, uri, view->open_tabs_in_the_background); -- 2.39.5