Changeset 258 for trunk/desktop/src/vdesktop.c
- Timestamp:
- Mar 17, 2007, 11:42:55 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/desktop/src/vdesktop.c
r241 r258 57 57 #include "m_wpfolder.h" 58 58 #include "wpfolder.h" 59 #include "m_wprootfolder.h" 60 #include "wprootfolder.h" 59 61 #include "wpobject.h" 60 62 … … 87 89 PNOM_ENV pEnv; 88 90 NOMClassMgr *NOMClassMgrObject; 89 GtkWidget* window;90 int a;91 ULONG pMem;92 91 HREGDLL hReg=NULLHANDLE; 93 92 … … 99 98 gchar *chrDisplayName; 100 99 100 /* Register DLLs with the garbage collector */ 101 101 hReg=nomBeginRegisterDLLWithGC(); 102 102 if(NULLHANDLE==hReg) 103 103 return 1; 104 104 105 /* Register DLLs with the garbage collector */106 105 g_assert(nomRegisterDLLByName(hReg, "GLIB2.DLL" )); 107 106 g_assert(nomRegisterDLLByName(hReg, "GOBJECT2.DLL")); … … 125 124 126 125 #if 0 127 /* Initialize thread subsystem */126 /* Initialize thread subsystem. This needs a multithreaded glib */ 128 127 if(!g_thread_supported()) 129 128 g_thread_init(NULL); … … 161 160 /* Create root folder */ 162 161 np=NOMPath_queryPathBegin(nomPath, NULLHANDLE); 163 wpRootFolder=WP FolderNew();164 WP Folder_wpLockObject(wpRootFolder, NULLHANDLE);165 WP Folder_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), 166 165 NULLHANDLE); 167 166 chrDisplayName = g_filename_to_utf8 (NOMPath_queryCString(np,NULLHANDLE), -1, NULL, NULL, NULL); 168 WP Folder_wpSetTitleFromCString((WPObject*)wpRootFolder, chrDisplayName, NULLHANDLE);167 WPRootFolder_wpSetTitleFromCString((WPObject*)wpRootFolder, chrDisplayName, NULLHANDLE); 169 168 170 169 wpTempFolder=wpRootFolder; … … 188 187 /* insert into contents list */ 189 188 WPFolder_wpAddToContent(wpTempFolder, (WPObject*) wpFolder, 190 N OMPath_copyCString(np, NULLHANDLE), NULLHANDLE);189 NULLHANDLE); 191 190 192 191 wpTempFolder=wpFolder; … … 215 214 216 215 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 228 217 printf("And now we quit...\n"); 229 218
Note:
See TracChangeset
for help on using the changeset viewer.