Show
Ignore:
Timestamp:
03/25/08 18:16:02 (8 months ago)
Author:
Mike Wey
Message:

Support for dmd 2.012

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/atk/ObjectAtk.d

    r466 r480  
    5454 * module aliases: 
    5555 * local aliases: 
     56 * overrides: 
    5657 */ 
    5758 
     
    106107     
    107108    /** the main Gtk struct as a void* */ 
    108     protected void* getStruct() 
     109    protected override void* getStruct() 
    109110    { 
    110111        return cast(void*)atkObject; 
     
    260261    } 
    261262     
    262     void delegate(char[], gboolean, ObjectAtk)[] onStateChangeListeners; 
     263    void delegate(string, gboolean, ObjectAtk)[] onStateChangeListeners; 
    263264    /** 
    264265     * The "state-change" signal is emitted when an object's state changes. 
    265266     * The detail value identifies the state type which has changed. 
    266267     */ 
    267     void addOnStateChange(void delegate(char[], gboolean, ObjectAtk) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) 
     268    void addOnStateChange(void delegate(string, gboolean, ObjectAtk) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0) 
    268269    { 
    269270        if ( !("state-change" in connectedSignals) ) 
     
    284285        bool consumed = false; 
    285286         
    286         foreach ( void delegate(char[], gboolean, ObjectAtk) dlg ; objectAtk.onStateChangeListeners ) 
     287        foreach ( void delegate(string, gboolean, ObjectAtk) dlg ; objectAtk.onStateChangeListeners ) 
    287288        { 
    288289            dlg(Str.toString(arg1), arg2, objectAtk); 
     
    334335     * Returns: an AtkRole for the new role. 
    335336     */ 
    336     public static AtkRole roleRegister(char[] name) 
     337    public static AtkRole roleRegister(string name) 
    337338    { 
    338339        // AtkRole atk_role_register (const gchar *name); 
     
    364365     * Returns: a character string representing the accessible name of the object. 
    365366     */ 
    366     public char[] getName() 
     367    public string getName() 
    367368    { 
    368369        // const gchar* atk_object_get_name (AtkObject *accessible); 
    369         return Str.toString(atk_object_get_name(atkObject)).dup
     370        return Str.toString(atk_object_get_name(atkObject))
    370371    } 
    371372     
     
    374375     * Returns: a character string representing the accessible descriptionof the accessible. 
    375376     */ 
    376     public char[] getDescription() 
     377    public string getDescription() 
    377378    { 
    378379        // const gchar* atk_object_get_description (AtkObject *accessible); 
    379         return Str.toString(atk_object_get_description(atkObject)).dup
     380        return Str.toString(atk_object_get_description(atkObject))
    380381    } 
    381382     
     
    510511     * name =  a character string to be set as the accessible name 
    511512     */ 
    512     public void setName(char[] name) 
     513    public void setName(string name) 
    513514    { 
    514515        // void atk_object_set_name (AtkObject *accessible,  const gchar *name); 
     
    521522     * description =  a character string to be set as the accessible description 
    522523     */ 
    523     public void setDescription(char[] description) 
     524    public void setDescription(string description) 
    524525    { 
    525526        // void atk_object_set_description (AtkObject *accessible,  const gchar *description); 
     
    643644     * Returns: the string describing the AtkRole 
    644645     */ 
    645     public static char[] roleGetName(AtkRole role) 
     646    public static string roleGetName(AtkRole role) 
    646647    { 
    647648        // const gchar* atk_role_get_name (AtkRole role); 
    648         return Str.toString(atk_role_get_name(role)).dup
     649        return Str.toString(atk_role_get_name(role))
    649650    } 
    650651     
     
    655656     * Returns: the localized string describing the AtkRole 
    656657     */ 
    657     public static char[] roleGetLocalizedName(AtkRole role) 
     658    public static string roleGetLocalizedName(AtkRole role) 
    658659    { 
    659660        // const gchar* atk_role_get_localized_name (AtkRole role); 
    660         return Str.toString(atk_role_get_localized_name(role)).dup
     661        return Str.toString(atk_role_get_localized_name(role))
    661662    } 
    662663     
     
    667668     * Returns: the AtkRole enumerated type corresponding to the specifiedname, or ATK_ROLE_INVALID if no matching role is found. 
    668669     */ 
    669     public static AtkRole roleForName(char[] name) 
     670    public static AtkRole roleForName(string name) 
    670671    { 
    671672        // AtkRole atk_role_for_name (const gchar *name);