Changeset 141 for trunk/desktop/class_c


Ignore:
Timestamp:
Dec 3, 2006, 12:55:29 PM (19 years ago)
Author:
cinc
Message:

Implemented wpSetTitle()/wpQueryTitle() and fixed some glitches.

Location:
trunk/desktop/class_c
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/desktop/class_c/wpfilesystem.c

    r98 r141  
    3939#include <os2.h>
    4040
     41#include "nom.h"
     42#include "nomtk.h"
     43
    4144#include <string.h>
    4245#include "wpfilesystem.ih"
     
    4649/* WPFileSystemData* nomThis=WPFileSystemGetData(nomSelf); */
    4750
     51  nomPrintf("thePath: ---> %s \n", fullPath);
    4852}
    4953
  • trunk/desktop/class_c/wpfolder.c

    r127 r141  
    253253    case OPEN_DEFAULT:
    254254      {
     255        WPFolder_wpCreateFolderWindow(nomSelf, ev);
    255256#if 0
    256257        char path[CCHMAXPATH];
     
    334335
    335336
    336 
    337 
    338 
     337NOM_Scope void NOMLINK impl_WPFolder_tstSetFolderPath(WPFolder* nomSelf, const CORBA_char * thePath, CORBA_Environment *ev)
     338{
     339/* WPFolderData* nomThis=WPFolderGetData(nomSelf); */
     340
     341
     342}
     343
     344
     345
     346
  • trunk/desktop/class_c/wpobject.c

    r122 r141  
    124124  //g_mutex_free(_gObjectMutex);
    125125  DosCloseMutexSem(_gObjectMutex);
    126   WPObject_nomUninit_parent(nomSelf, ev);
     126  WPObject_nomUninit_parent((NOMObject*)nomSelf, ev);
    127127}
    128128
    129129NOM_Scope void NOMLINK impl_WPObject_wpInitData(WPObject* nomSelf, CORBA_Environment *ev)
    130130{
    131 /* WPObjectData* nomThis=WPObjectGetData(nomSelf); */
    132 
     131  WPObjectData* nomThis=WPObjectGetData(nomSelf);
     132
     133  /* Make sure a title exists (even if it's an empty string */
     134  _pnomStringTitle=NOMStringNew();
    133135}
    134136
     
    195197  return DosReleaseMutexSem(_gObjectMutex);
    196198}
     199
     200NOM_Scope PNOMString NOMLINK impl_WPObject_wpSetTitle(WPObject* nomSelf, const PNOMString pnomStrNewTitle, CORBA_Environment *ev)
     201{
     202  WPObjectData* nomThis=WPObjectGetData(nomSelf);
     203
     204  NOMString_assignString(_pnomStringTitle, pnomStrNewTitle, ev);
     205
     206  return _pnomStringTitle;
     207}
     208
     209NOM_Scope PNOMString NOMLINK impl_WPObject_wpQueryTitle(WPObject* nomSelf, CORBA_Environment *ev)
     210{
     211  WPObjectData* nomThis=WPObjectGetData(nomSelf);
     212
     213  return _pnomStringTitle;
     214}
     215
Note: See TracChangeset for help on using the changeset viewer.