From: Christian Dywan Date: Tue, 14 Apr 2009 17:19:50 +0000 (+0200) Subject: Fix search engines without %s in the context menu X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d360b065b60c9fcb9441c1f2d2cf05c0180f780;p=midori Fix search engines without %s in the context menu --- 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);