]> spindle.queued.net Git - midori/commitdiff
Show at most 10 back/ forward history items
authorChristian Dywan <christian@twotoasts.de>
Sat, 31 Mar 2012 00:50:51 +0000 (02:50 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sat, 31 Mar 2012 00:50:51 +0000 (02:50 +0200)
Consistent with trash.

midori/midori-browser.c

index 0692d7107607aad1fac2bb5a7c239fff88593026..5061ec058589656676f88d00807693d7edb75d5b 100644 (file)
@@ -6516,6 +6516,8 @@ midori_browser_toolbar_popup_context_menu_history (MidoriBrowser* browser,
         g_signal_connect (G_OBJECT (menu_item), "activate",
             G_CALLBACK (midori_browser_toolbar_popup_context_menu_history_cb),
             browser);
+        if (steps == (10 - 1))
+            break;
     }
 
     webkit_web_back_forward_list_go_to_item (list, current_item);