[Xfce4-commits] <midori:master> Remove legacy code from midori_view_populate_popup

Christian Dywan noreply at xfce.org
Fri Jun 17 12:02:03 CEST 2011


Updating branch refs/heads/master
         to 01c353366d336538db6d28d99fd206123274d82f (commit)
       from e228e0009064e4df48cffe6ce6e5ce2b78562458 (commit)

commit 01c353366d336538db6d28d99fd206123274d82f
Author: Paweł Forysiuk <tuxator at o2.pl>
Date:   Sun Jun 12 15:19:18 2011 +0200

    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.

 midori/midori-view.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/midori/midori-view.c b/midori/midori-view.c
index 1dc0952..9435a95 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, ' ')



More information about the Xfce4-commits mailing list