Changeset 567

Show
Ignore:
Timestamp:
08/19/08 17:16:28 (3 months ago)
Author:
Mike Wey
Message:

move GTypeInterface to the APILookup files

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/gobject/Type.d

    r540 r567  
    3939 *  - g_type_ 
    4040 * omit structs: 
     41 *  - GTypeInterface 
    4142 * omit prefixes: 
    4243 * omit code: 
  • trunk/src/gtkc/gobjecttypes.d

    r546 r567  
    208208alias GConnectFlags ConnectFlags; 
    209209 
     210 
     211//We need a corectly warped struct for gtk.TreeModel. 
     212 
     213/** 
     214 * An opaque structure used as the base of all interface types. 
     215 */ 
     216public struct GTypeInterface 
     217{ 
     218    GType gType;         /* iface type */ 
     219    GType gInstanceType; 
     220} 
     221 
    210222struct GValue 
    211223{ 
     
    229241    Data data2; 
    230242}; 
    231  
    232 /** 
    233  * An opaque structure used as the base of all interface types. 
    234  */ 
    235 public struct GTypeInterface 
    236 { 
    237     GType gType;         /* iface type */ 
    238     GType gInstanceType; 
    239 } 
    240  
    241243 
    242244/** 
  • trunk/wrap/APILookupGObject.txt

    r529 r567  
    4242 
    4343addStructs: start 
     44 
     45//We need a corectly warped struct for gtk.TreeModel. 
     46 
     47/** 
     48 * An opaque structure used as the base of all interface types. 
     49 */ 
     50public struct GTypeInterface 
     51{  
     52    GType gType;         /* iface type */  
     53    GType gInstanceType; 
     54} 
     55 
    4456addStructs: end 
    4557 
     
    93105class: Type 
    94106prefix: g_type_ 
     107nostruct: GTypeInterface 
    95108import: glib.Str 
    96109#structWrap: GType* Type 
  • trunk/wrap/utils/GtkDClass.d

    r561 r567  
    17381738                getStructInternals(structDef, convParms); 
    17391739                collectedStructs ~= "\n}"; 
    1740             } 
    1741             else if ( structName == "GTypeInterface") 
    1742             { 
    1743                 //Special case to get custom treemodels working. 
    1744                 collectedStructs ~= "public struct GTypeInterface"; 
    1745                 collectedStructs ~= "{"; 
    1746                 collectedStructs ~= "\tGType gType;         /* iface type */"; 
    1747                 collectedStructs ~= "\tGType gInstanceType;"; 
    1748                 collectedStructs ~= "}"; 
    17491740            } 
    17501741            else