Ignore:
Timestamp:
Jan 16, 2007, 8:32:50 PM (19 years ago)
Author:
cinc
Message:

Improvements to folders

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/desktop/src/vdesktop.c

    r191 r194  
    114114  g_assert(nomRegisterDLLByName(hReg, "NOBJTK.DLL"));
    115115  g_assert(nomRegisterDLLByName(hReg, "VDESKTOP.DLL"));
     116  g_assert(nomRegisterDLLByName(hReg, "VOYFCLS.DLL"));
     117  g_assert(nomRegisterDLLByName(hReg, "VOYWP.DLL"));
     118  g_assert(nomRegisterDLLByName(hReg, "VOYGUITK.DLL"));
     119  //  g_assert(nomRegisterDLLByName(hReg, "PBL-PNG.DLL"));
     120  //  g_assert(nomRegisterDLLByName(hReg, "BASIC-FC.DLL"));
    116121  /* Add Pango here? */
    117 
     122  g_assert(nomRegisterDLLByName(hReg, "PANGO.DLL"));
    118123  nomEndRegisterDLLWithGC(hReg);
    119124
     
    156161  np=NOMPath_queryPathBegin(nomPath, NULLHANDLE);
    157162  wpRootFolder=WPFolderNew();
     163  WPFolder_wpLockObject(wpRootFolder, NULLHANDLE);
    158164  WPFolder_tstSetFullPath(wpRootFolder, NOMPath_queryCString(NOMPath_queryRoot(np, NULLHANDLE),NULLHANDLE),
    159165                          NULLHANDLE);
     
    172178
    173179      wpFolder=WPFolderNew();
     180      WPFolder_wpLockObject(wpFolder, NULLHANDLE);
    174181      WPFolder_tstSetFullPath(wpFolder, NOMPath_queryCString(np,NULLHANDLE),
    175182                              NULLHANDLE);
     
    177184      WPFolder_wpSetTitleFromCString((WPObject*)wpFolder, chrDisplayName, NULLHANDLE);
    178185      WPFolder_wpSetFolder(wpFolder, wpTempFolder, NULLHANDLE);
     186     
    179187      /* insert into contents list */
    180188      WPFolder_wpAddToContent(wpTempFolder, (WPObject*) wpFolder,
    181                               NOMPath_copyCString(wpFolder, NULLHANDLE), NULLHANDLE);
     189                              NOMPath_copyCString(np, NULLHANDLE), NULLHANDLE);
    182190     
    183191      wpTempFolder=wpFolder;
     
    221229  return 0;
    222230}
    223 
    224 
    225 /*
    226   Just a test function for making noise...
    227  */
    228 void _System theBeep(void)
    229 {
    230   DosBeep(2500,400);
    231   DosBeep(500,200);
    232   DosBeep(1500,200);
    233   DosBeep(2500,400);
    234   DosBeep(1500,200);
    235   DosBeep(500,200);
    236   DosBeep(2500,400);
    237 }
Note: See TracChangeset for help on using the changeset viewer.