Changeset 2011

Show
Ignore:
Timestamp:
05/18/07 18:04:52
Author:
pvanhoof
Message:

Small fixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tools/gtypeinterface-h-files-to-c-file.pl

    r1254 r2011  
    179179print "{\n\tparent_class->finalize (object);\n}\n"; 
    180180 
     181print "static void\n"; 
     182print uncamel_low($typename)."_instance_init (GTypeInstance *instance, gpointer g_class)\n"; 
     183print "{\n}\n"; 
     184 
    181185foreach my $iface (@interfaces) 
    182186{ 
     
    226230        print ("\t\t\t(GInterfaceInitFunc) ".$iface_low."_init, /* interface_init */\n"); 
    227231        print ("\t\t\tNULL,         /* interface_finalize */\n"); 
    228         print ("\t\t\tNULL          /* interface_data */\n\t\t}\n\n"); 
     232        print ("\t\t\tNULL          /* interface_data */\n\t\t};\n\n"); 
    229233} 
    230234 
     
    238242        my $iface_up = uncamel_up ($iface->{name}); 
    239243        my $iface_low = uncamel_low ($iface->{name}); 
    240         print "\t\tg_type_add_interface_static (type, $iface_up,\n"; 
    241         print "\t\t\t&".$iface_low."_info\n\n"; 
     244        print "\t\tFIX THIS (ADD _TYPE):\n\t\tg_type_add_interface_static (type, $iface_up,\n"; 
     245        print "\t\t\t&".$iface_low."_info);\n\n"; 
    242246} 
    243247print "\t}\n\treturn type;\n}\n";