Changeset 111 for trunk/desktop/class_c/wpdatafile.c
- Timestamp:
- Nov 25, 2006, 11:06:46 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/desktop/class_c/wpdatafile.c
r98 r111 43 43 44 44 #include <string.h> 45 46 #include "nom.h" 47 #include "nomtk.h" 48 45 49 #include "wpdatafile.ih" 50 #include "helper.h" 51 #include "desktop.h" 46 52 47 53 NOM_Scope CORBA_long NOMLINK impl_WPDataFile_wpQueryFileSize(WPDataFile* nomSelf, CORBA_Environment *ev) … … 61 67 } 62 68 69 NOM_Scope void NOMLINK impl_WPDataFile_wpQueryIcon(WPDataFile* nomSelf, CORBA_Environment *ev) 70 { 71 static const gchar *gchrIconName=NULLHANDLE; 72 static gpointer ptrIcon=NULLHANDLE; 73 GError *error=NULL; 74 75 /* WPDataFileData* nomThis=WPDataFileGetData(nomSelf); */ 76 77 /* Load default wpObject icon */ 78 if(!gchrIconName){ 79 gchrIconName=g_build_filename(priv_getIconDir(), WPOBJECT_ICON_FILE, NULL); 80 81 g_return_val_if_fail(g_file_test (gchrIconName, G_FILE_TEST_EXISTS), NULLHANDLE); 82 nomPrintf("IconFile: %s\n", gchrIconName); 83 // _hPointerCls = (HPOINTER)gdk_pixbuf_new_from_file (gchrIconName, &error); 84 ptrIcon=gdk_pixbuf_new_from_file (gchrIconName, &error); 85 } 86 #warning !!!!! Dont create an icon for each object !!!!! 87 return gdk_pixbuf_new_from_file (gchrIconName, &error); 88 89 #if 0 90 /* orbit-idl-c-stubs.c, VoyagerWriteProtoForParentCall line 84 */ 91 WPDataFile_wpQueryIcon_parent(nomSelf, ev); 92 #endif 93 } 94
Note:
See TracChangeset
for help on using the changeset viewer.