appletfoldermenu.c

Go to the documentation of this file.
00001 
00002 /*  $Id: appletfoldermenu.c 355 2005-01-11 22:48:55Z andreradke $    */
00003 
00004 /* copyright 1991-96 UserLand Software, Inc. All Rights Reserved.*/
00005 
00006 
00007 #include "appletdefs.h"
00008 #include "appletstrings.h"
00009 #include "appletmenuops.h"
00010 #include "appletfolder.h"
00011 #include "appletfoldermenu.h"
00012 
00013 
00014 
00015 static boolean foldermenucallback (bigstring fname, tyfileinfo *info, long refcon) {
00016     
00017     MenuHandle hmenu = (MenuHandle) refcon;
00018     
00019     return (pushmenuitem (hmenu, fname, true));
00020     } /*foldermenucallback*/
00021     
00022     
00023 boolean getfoldermenu (ptrfilespec pfolderspec, MenuHandle *hmenu) {
00024     
00025     *hmenu = NewMenu (25000, "\px");
00026     
00027     folderloop (pfolderspec, false, &foldermenucallback, (long) *hmenu);
00028     
00029     return (true);
00030     } /*getfoldermenu*/
00031     
00032     

Generated on Wed May 31 18:19:42 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6