Ignore:
Timestamp:
Mar 17, 2007, 11:42:55 AM (18 years ago)
Author:
cinc
Message:

New WPDrives and WPRootFolder classes. Some minor changes.

File:
1 edited

Legend:

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

    r241 r258  
    5757#include "m_wpfolder.h"
    5858#include "wpfolder.h"
     59#include "m_wprootfolder.h"
     60#include "wprootfolder.h"
    5961#include "wpobject.h"
    6062
     
    8789  PNOM_ENV pEnv;
    8890  NOMClassMgr *NOMClassMgrObject;
    89   GtkWidget* window;
    90   int a;
    91   ULONG pMem;
    9291  HREGDLL hReg=NULLHANDLE;
    9392 
     
    9998  gchar *chrDisplayName;
    10099
     100  /* Register DLLs with the garbage collector */
    101101  hReg=nomBeginRegisterDLLWithGC();
    102102  if(NULLHANDLE==hReg)
    103103    return 1;
    104104 
    105   /* Register DLLs with the garbage collector */
    106105  g_assert(nomRegisterDLLByName(hReg, "GLIB2.DLL" ));
    107106  g_assert(nomRegisterDLLByName(hReg, "GOBJECT2.DLL"));
     
    125124
    126125#if 0
    127   /* Initialize thread subsystem */
     126  /* Initialize thread subsystem. This needs a multithreaded glib */
    128127  if(!g_thread_supported())
    129128    g_thread_init(NULL);
     
    161160  /* Create root folder */
    162161  np=NOMPath_queryPathBegin(nomPath, NULLHANDLE);
    163   wpRootFolder=WPFolderNew();
    164   WPFolder_wpLockObject(wpRootFolder, NULLHANDLE);
    165   WPFolder_tstSetFullPath(wpRootFolder, NOMPath_queryCString(NOMPath_queryRoot(np, NULLHANDLE),NULLHANDLE),
     162  wpRootFolder=WPRootFolderNew();
     163  WPRootFolder_wpLockObject(wpRootFolder, NULLHANDLE);
     164  WPRootFolder_tstSetFullPath(wpRootFolder, NOMPath_queryCString(NOMPath_queryRoot(np, NULLHANDLE),NULLHANDLE),
    166165                          NULLHANDLE);
    167166  chrDisplayName = g_filename_to_utf8 (NOMPath_queryCString(np,NULLHANDLE), -1, NULL, NULL, NULL);
    168   WPFolder_wpSetTitleFromCString((WPObject*)wpRootFolder, chrDisplayName, NULLHANDLE);
     167  WPRootFolder_wpSetTitleFromCString((WPObject*)wpRootFolder, chrDisplayName, NULLHANDLE);
    169168
    170169  wpTempFolder=wpRootFolder;
     
    188187      /* insert into contents list */
    189188      WPFolder_wpAddToContent(wpTempFolder, (WPObject*) wpFolder,
    190                               NOMPath_copyCString(np, NULLHANDLE), NULLHANDLE);
     189                              NULLHANDLE);
    191190     
    192191      wpTempFolder=wpFolder;
     
    215214
    216215   
    217 #if 0
    218     mem=g_malloc(1250000);
    219     memset(mem, 0xaa, 10000);
    220     //  *pGlobalMemInExe=mem;
    221     for(a=0;a<50;a++){
    222       g_malloc(1250000);
    223       printf("%x %x %x %x %d\n", *mem, *(mem+1), *(mem+2), *(mem+3), 0);
    224       //printf("%x\n", *((ULONG*)pGlobalMemInExe));
    225     }
    226 #endif
    227 
     216#warning !!!!! A call to NOMTerminate() or alike is missing
    228217    printf("And now we quit...\n");
    229218
Note: See TracChangeset for help on using the changeset viewer.