From: Paweł Forysiuk Date: Sun, 12 Jun 2011 13:19:18 +0000 (+0200) Subject: Remove legacy code from midori_view_populate_popup X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01c353366d336538db6d28d99fd206123274d82f;p=midori Remove legacy code from midori_view_populate_popup Delete code which was ommited by mistake in commit 46de9f7767351587b6bc12024fa9f1e4d09b2f01. Only version check was removed, whithout actually removing legacy code. --- diff --git a/midori/midori-view.c b/midori/midori-view.c index 1dc09526..9435a954 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -2356,15 +2356,6 @@ midori_view_populate_popup (MidoriView* view, midori_view_insert_menu_item (menu_shell, 0, _("_Search the Web"), GTK_STOCK_FIND, G_CALLBACK (midori_web_view_menu_search_web_activate_cb), widget); - items = gtk_container_get_children (GTK_CONTAINER (menu)); - menuitem = (GtkWidget*)g_list_nth_data (items, 0); - /* hack to localize menu item */ - label = gtk_bin_get_child (GTK_BIN (menuitem)); - gtk_label_set_label (GTK_LABEL (label), _("_Search the Web")); - /* hack to implement Search the Web */ - g_signal_connect (menuitem, "activate", - G_CALLBACK (midori_web_view_menu_search_web_activate_cb), view); - g_list_free (items); g_strstrip (view->selected_text); if (view->selected_text && !strchr (view->selected_text, ' ')