Ignore:
Timestamp:
Jan 20, 2007, 11:16:33 PM (19 years ago)
Author:
cinc
Message:

Added code to cope with changed *.ih file format.

File:
1 edited

Legend:

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

    r200 r206  
    3333* ***** END LICENSE BLOCK ***** */
    3434/*
    35  * This file was generated by orbit-idl-2 for Voyager
    36  *
    37  *
    3835 * And remember, phase 3 is near...
    3936 */
    40 
     37#ifndef NOM_WPDataFile_IMPLEMENTATION_FILE
     38#define NOM_WPDataFile_IMPLEMENTATION_FILE
     39#endif
    4140#define INCL_DOS
    4241#include <os2.h>
     
    6463{
    6564/* WPDataFileData* nomThis=WPDataFileGetData(nomSelf); */
    66   CORBA_long nomRetval;
    6765
    68   return nomRetval;
     66  return 0;
    6967}
    7068
     
    7270{
    7371/* WPDataFileData* nomThis=WPDataFileGetData(nomSelf); */
    74   CORBA_long nomRetval;
    7572
    76   return nomRetval;
     73  return 0;
    7774}
    7875
    7976NOM_Scope gpointer NOMLINK impl_WPDataFile_wpQueryIcon(WPDataFile* nomSelf, CORBA_Environment *ev)
    8077{
    81   static const gchar *gchrIconName=NULLHANDLE;
    82   static gpointer ptrIcon=NULLHANDLE;
    83   GError *error=NULL;
    84 
    8578  /* WPDataFileData* nomThis=WPDataFileGetData(nomSelf); */
    8679
    8780  return   WPDataFile_wpQueryIcon_parent(nomSelf, NULLHANDLE);
    8881
    89 #if 0
    90   /* Load default wpObject icon */
    91   if(!gchrIconName){
    92     gchrIconName=g_build_filename(priv_getIconDir(), WPOBJECT_ICON_FILE, NULL);
    93    
    94     g_return_val_if_fail(g_file_test (gchrIconName, G_FILE_TEST_EXISTS), NULLHANDLE);
    95     nomPrintf("IconFile: %s\n", gchrIconName); 
    96     //  _hPointerCls = (HPOINTER)gdk_pixbuf_new_from_file (gchrIconName, &error);
    97     ptrIcon=gdk_pixbuf_new_from_file (gchrIconName, &error);
    98   }
    99 #warning !!!!! Dont create an icon for each object !!!!!
    100   if(ptrIcon)
    101     return ptrIcon;
    102   else
    103     return gdk_pixbuf_new_from_file (gchrIconName, &error);
    104 #endif
    10582#if 0
    10683  /* orbit-idl-c-stubs.c, VoyagerWriteProtoForParentCall line 84 */
Note: See TracChangeset for help on using the changeset viewer.