]> spindle.queued.net Git - midori/commitdiff
Insert Paste and Proceed menu item after default Paste menu item
authorPeter Hatina <phatina@redhat.com>
Mon, 7 Nov 2011 23:43:44 +0000 (00:43 +0100)
committerChristian Dywan <christian@twotoasts.de>
Mon, 7 Nov 2011 23:43:44 +0000 (00:43 +0100)
Fixes: https://bugs.launchpad.net/midori/+bug/776861
midori/midori-locationaction.c

index 682420c70d9d07c772954130e73938f173baaf5d..292d6cf8ad63b0a9b424a5b2b79c2383e5233ae3 100644 (file)
@@ -1284,7 +1284,8 @@ midori_location_action_populate_popup_cb (GtkWidget*            entry,
     /* i18n: Right-click on Location, Open an URL from the clipboard */
     menuitem = gtk_menu_item_new_with_mnemonic (_("Paste and p_roceed"));
     gtk_widget_show (menuitem);
-    gtk_menu_shell_append (menu, menuitem);
+    /* Insert menu item after default Paste menu item */
+    gtk_menu_shell_insert (menu, menuitem, 3);
     g_signal_connect (menuitem, "activate",
         G_CALLBACK (midori_location_action_paste_proceed_cb), location_action);
 }