Changeset 172 for trunk/desktop/class_c/wpobject.c
- Timestamp:
- Jan 4, 2007, 6:53:35 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/desktop/class_c/wpobject.c
r167 r172 167 167 } 168 168 169 NOM_Scope gpointer NOMLINK impl_WPObject_wpOpen(WPObject* nomSelf, const gpointer ptrReserved, const CORBA_unsigned_long ulView, const gpointer ptrParams, CORBA_Environment *ev) 169 170 NOM_Scope gpointer NOMLINK impl_WPObject_wpOpen(WPObject* nomSelf, const PNOMFolderWindow nomFolder, 171 const gulong ulView, const gpointer pParam, CORBA_Environment *ev) 172 { 173 /* WPObjectData* nomThis=WPObjectGetData(nomSelf); */ 174 175 switch(ulView) 176 { 177 case OPEN_SETTINGS: 178 { 179 WPNoteBook* wpNoteBook; 180 wpNoteBook=WPNoteBookNew(); 181 _wpAddSettingsPages(nomSelf, wpNoteBook, ev); 182 WPNoteBook_show(wpNoteBook, ev); 183 return (gpointer) wpNoteBook; 184 } 185 default: 186 /* We are the very last in the chain of classes being called */ 187 g_return_val_if_reached(NULLHANDLE); 188 break; 189 } 190 return NULLHANDLE; 191 } 192 193 NOM_Scope gpointer NOMLINK impl_WPObject_wpViewObject(WPObject* nomSelf, const PNOMFolderWindow nomFolder, const gulong ulView, const gpointer pParam, CORBA_Environment *ev) 170 194 { 171 195 /* WPObjectData* nomThis=WPObjectGetData(nomSelf); */ 172 196 gpointer nomRetval=NULLHANDLE; 173 197 174 return nomRetval; 198 199 if((nomRetval=WPObject_wpSwitchTo(nomSelf, ulView, ev))!=NULLHANDLE) 200 return nomRetval; 201 202 return WPObject_wpOpen(nomSelf, nomFolder, ulView, pParam, ev); 203 } 204 205 NOM_Scope gpointer NOMLINK impl_WPObject_wpSwitchTo(WPObject* nomSelf, const gulong ulView, CORBA_Environment *ev) 206 { 207 /* WPObjectData* nomThis=WPObjectGetData(nomSelf); */ 208 209 g_message("Method wpSwitchTo() not implemented."); 210 211 return NULLHANDLE; 175 212 } 176 213 … … 306 343 307 344 gtk_widget_show_all (vbox); 308 // GUIProperties *tst=GUIPropertiesNew(); 309 310 /* _addNotebookPage(tst, vbox, "Icon"); 311 _show(tst);*/ 312 313 gtk_notebook_prepend_page (GTK_NOTEBOOK ( 314 NOMNoteBook_queryWindowHandle( 315 WPNoteBook_wpQueryNoteBookObject(wpNoteBook, ev), ev)), vbox, label); 345 346 NOMNoteBook_prependPage(WPNoteBook_wpQueryNoteBookObject(wpNoteBook, ev), vbox, label, ev); 316 347 317 348 return 1234; … … 389 420 { 390 421 /* WPObjectData* nomThis=WPObjectGetData(nomSelf); */ 391 CORBA_boolean nomRetval=FALSE;392 422 393 423 /* We only handle items with in own name space */ … … 398 428 case WPMENUID_PROPERTIES: 399 429 { 400 WPNoteBook* wpNoteBook; 401 wpNoteBook=WPNoteBookNew(); 402 _wpAddSettingsPages(nomSelf, wpNoteBook, ev); 403 WPNoteBook_show(wpNoteBook, ev); 404 break; 430 WPObject_wpViewObject(nomSelf, nomFolder, 431 OPEN_SETTINGS, NULLHANDLE, ev); 432 return TRUE; /* We always return TRUE to show, we handled the menu item. It doesn't 433 matter if we actually succeeded with creating the settings notebook. */ 405 434 } 406 435 default: … … 408 437 } 409 438 } 410 return nomRetval;439 return FALSE; 411 440 } 412 441
Note:
See TracChangeset
for help on using the changeset viewer.