Changeset 172 for trunk/desktop/class_c
- Timestamp:
- Jan 4, 2007, 6:53:35 PM (19 years ago)
- Location:
- trunk/desktop/class_c
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/desktop/class_c/wpfolder.c
r166 r172 231 231 } 232 232 233 NOM_Scope gpointer NOMLINK impl_WPFolder_wpOpen(WPFolder* nomSelf, const gpointer ptrReserved,234 const CORBA_unsigned_long ulView, const gpointer ptrParams,233 NOM_Scope gpointer NOMLINK impl_WPFolder_wpOpen(WPFolder* nomSelf, const PNOMFolderWindow nomFolder, 234 const gulong ulView, const gpointer pParam, 235 235 CORBA_Environment *ev) 236 236 { … … 277 277 }/* default */ 278 278 default: 279 g_return_val_if_reached(NULLHANDLE);280 279 break; 281 280 }/* switch */ 282 return NULLHANDLE; 281 282 return WPFolder_wpOpen_parent(nomSelf, nomFolder, ulView, pParam, ev); 283 283 } 284 284 -
trunk/desktop/class_c/wpnotebook.c
r167 r172 72 72 /* Create the toplevel window */ 73 73 gtkWindow=gtk_window_new(GTK_WINDOW_TOPLEVEL); 74 gtk_container_set_border_width(GTK_CONTAINER(gtkWindow), 5);74 gtk_container_set_border_width(GTK_CONTAINER(gtkWindow), 1); 75 75 /* Make sure we have a reference to the class so the garbage collector 76 76 doesn't unload us */ -
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.