[Nautilus-list] Patch: bug 74893



This patch limits the number of history items in the go menu to the ten
most recent, so that the menu doesn't get unwieldy.
Index: nautilus-window-menus.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/nautilus-window-menus.c,v
retrieving revision 1.236
diff -u -p -r1.236 nautilus-window-menus.c
--- nautilus-window-menus.c	2002/04/21 22:41:17	1.236
+++ nautilus-window-menus.c	2002/04/26 01:25:06
@@ -1296,6 +1296,11 @@ refresh_go_menu (NautilusWindow *window)
 					 MENU_PATH_HISTORY_PLACEHOLDER,
 					 index,
 					 FALSE);
+		
+		/* Limit the number of history items to the ten most recent*/
+		if (index == 9){
+			break;
+		}
 	}
 
 	bonobo_ui_component_thaw (window->details->shell_ui, NULL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]