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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.