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/demos/gtkD/TestWindow.d

    r462 r480  
    179179        showAll(); 
    180180 
    181         char[] versionCompare = Version.checkVersion(2,8,0); 
     181        string versionCompare = Version.checkVersion(2,8,0); 
    182182 
    183183        if ( versionCompare.length > 0 ) 
     
    318318        this() 
    319319        { 
    320             char[][] names; 
     320            string[] names; 
    321321            names ~= "Antonio Monteiro (binding/wrapping/proxying/decorating for D)"; 
    322322            names ~= "www.gtk.org (base C library)"; 
     
    332332    void onMenuActivate(MenuItem menuItem) 
    333333    { 
    334         char[] action = menuItem.getActionName(); 
     334        string action = menuItem.getActionName(); 
    335335        switch( action ) 
    336336        { 
     
    519519        // comboBoxTextEntry from a list of strings 
    520520        mainBox.packStart(new Label("String combo"),false,true,0); 
    521         static char[][] cbList = ["item 1","item 2","item 3","item 4","item 5","item 6","item 7","item 8","item 9"]; 
     521        static string[] cbList = ["item 1","item 2","item 3","item 4","item 5","item 6","item 7","item 8","item 9"]; 
    522522        comboText = new ComboBoxEntry(); 
    523         char[] entry3 = "Combo box text entry 3"; 
     523        string entry3 = "Combo box text entry 3"; 
    524524        comboText.appendText("Combo box text entry 1"); 
    525525        comboText.appendText("Combo box text entry 2"); 
     
    782782    void showFileChooser(Button button) 
    783783    { 
    784         char[][] a; 
     784        string[] a; 
    785785        ResponseType[] r; 
    786786        a ~= "Lets go!"; 
     
    797797//      writefln("file selected = %s",fcd.getFileName()); 
    798798// 
    799 //      foreach ( int i, char[] selection ; fs.getSelections()) 
     799//      foreach ( int i, string selection ; fs.getSelections()) 
    800800//      { 
    801801//          printf("File(s) selected [%d] %.*s\n",i,selection); 
     
    816816        fs.run(); 
    817817        //printf("file selected = %.*s\n",fs.getFileName()); 
    818 //      char[][] selections = fs.getSelections(); 
     818//      string[] selections = fs.getSelections(); 
    819819//      for ( int i=0 ;i<selections.length ; i++) 
    820820//      { 
     
    865865        } 
    866866        f.run(); 
    867         char[] fontName = f.getFontName(); 
     867        string fontName = f.getFontName(); 
    868868        f.hide(); 
    869869    } 
     
    925925        } 
    926926 
    927         version(Tango) void run() 
     927        version(Tango) override void run() 
    928928        { 
    929929            runCommon(); 
    930930        } 
    931         else int run() 
     931        else override int run() 
    932932        { 
    933933            return runCommon(); 
     
    10961096 
    10971097        static int [3] cols = [0,1,2]; 
    1098         char[][] vals; 
     1098        string[] vals; 
    10991099        vals ~= "Antonio"; 
    11001100        vals ~= "Canada"; 
     
    11031103 
    11041104        testListStore.append(iterTop); 
    1105         char[][] vals1; 
     1105        string[] vals1; 
    11061106        vals1 ~= "John Reimer"; 
    11071107        vals1 ~= "Canada"; 
     
    11101110 
    11111111        testListStore.append(iterTop); 
    1112         char[][] vals2; 
     1112        string[] vals2; 
    11131113        vals2 ~= "Friend of GtkD 2"; 
    11141114        vals2 ~= "Poland"; 
     
    11171117 
    11181118        testListStore.append(iterTop); 
    1119         char[][] vals3; 
     1119        string[] vals3; 
    11201120        vals3 ~= "Friend of GtkD 3"; 
    11211121        vals3 ~= "Norway"; 
     
    12141214private import gtkc.Loader; 
    12151215 
    1216 void main(char[][] args) 
     1216void main(string[] args) 
    12171217{ 
    12181218