Ignore:
Timestamp:
Nov 25, 2006, 5:37:43 PM (19 years ago)
Author:
cinc
Message:

Implemented wpInitData() for desktop classes

File:
1 edited

Legend:

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

    r99 r102  
    4343#include "nomtk.h"
    4444#include "wpobject.h"
     45#include "wpfolder.h"
    4546
    4647int createQuitWindow(void);
     
    4950NOMClassMgr *NOMClassMgrObject;
    5051
    51 #if 0
     52
    5253/* Desktop folder */
    5354WPFolder *wpDesktop;
    54 #endif
     55
    5556
    5657/*
     
    6667
    6768  /* Create a window with a 'quit' button to terminate us */
    68   createQuitWindow();
     69 createQuitWindow();
    6970
    7071
    7172  /* Query current dir */
    7273  g_strlcpy(desktopDir, g_get_current_dir(), sizeof(desktopDir));
    73   nomPrintf("Desktop: %s\n", desktopDir);
     74  dbgPrintf("Desktop: %s", desktopDir);
    7475
    7576    /*
     
    7778     */
    7879    pEnv=nomTkInit();
    79     dbgPrintf( "nomTKinit returned: %x", pEnv);
     80    //dbgPrintf( "nomTKinit returned: %x", pEnv);
    8081
    8182    if(!pEnv) {
     
    8687    /* Init SOM */
    8788    NOMClassMgrObject=nomEnvironmentNew();
    88     dbgPrintf( "NOMClassMgrObject: %x", NOMClassMgrObject);
     89    //dbgPrintf( "NOMClassMgrObject: %x", NOMClassMgrObject);
    8990
    9091
     
    9293    WPObject* wpObject;
    9394    wpObject=WPObjectNew();
    94     dbgPrintf( "wpObject: %x", wpObject);
     95    //dbgPrintf( "wpObject: %x", wpObject);
     96
     97    /* Create desktop folder */
     98    wpDesktop=WPFolderNew();
     99    dbgPrintf( "Created desktop object: %x", wpDesktop);
     100
     101    WPFolder_wpPopulate(wpDesktop, 0, desktopDir, 0,  NULL);
     102    /*    WPFolder_wpPopulate(wpObject, 0,"blabla 2", 0,  NULL);  */
     103
     104   
    95105#if 0
    96106    /* Base classes */
     
    100110    somPrintf("  -> Classname is: %s\n", _somGetClassName(wpObject));
    101111
    102     /* Create desktop folder */
    103     wpDesktop=WPFolderNew();
    104     dbgPrintf( "Created desktop object: %x", wpDesktop);
    105112
    106113    /* Test only!!! */
Note: See TracChangeset for help on using the changeset viewer.