Changeset 480 for trunk/demos/gtkD/TestWindow.d
- Timestamp:
- 03/25/08 18:16:02 (8 months ago)
- Files:
-
- trunk/demos/gtkD/TestWindow.d (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/demos/gtkD/TestWindow.d
r462 r480 179 179 showAll(); 180 180 181 char[]versionCompare = Version.checkVersion(2,8,0);181 string versionCompare = Version.checkVersion(2,8,0); 182 182 183 183 if ( versionCompare.length > 0 ) … … 318 318 this() 319 319 { 320 char[][] names;320 string[] names; 321 321 names ~= "Antonio Monteiro (binding/wrapping/proxying/decorating for D)"; 322 322 names ~= "www.gtk.org (base C library)"; … … 332 332 void onMenuActivate(MenuItem menuItem) 333 333 { 334 char[]action = menuItem.getActionName();334 string action = menuItem.getActionName(); 335 335 switch( action ) 336 336 { … … 519 519 // comboBoxTextEntry from a list of strings 520 520 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"]; 522 522 comboText = new ComboBoxEntry(); 523 char[]entry3 = "Combo box text entry 3";523 string entry3 = "Combo box text entry 3"; 524 524 comboText.appendText("Combo box text entry 1"); 525 525 comboText.appendText("Combo box text entry 2"); … … 782 782 void showFileChooser(Button button) 783 783 { 784 char[][] a;784 string[] a; 785 785 ResponseType[] r; 786 786 a ~= "Lets go!"; … … 797 797 // writefln("file selected = %s",fcd.getFileName()); 798 798 // 799 // foreach ( int i, char[]selection ; fs.getSelections())799 // foreach ( int i, string selection ; fs.getSelections()) 800 800 // { 801 801 // printf("File(s) selected [%d] %.*s\n",i,selection); … … 816 816 fs.run(); 817 817 //printf("file selected = %.*s\n",fs.getFileName()); 818 // char[][] selections = fs.getSelections();818 // string[] selections = fs.getSelections(); 819 819 // for ( int i=0 ;i<selections.length ; i++) 820 820 // { … … 865 865 } 866 866 f.run(); 867 char[]fontName = f.getFontName();867 string fontName = f.getFontName(); 868 868 f.hide(); 869 869 } … … 925 925 } 926 926 927 version(Tango) void run()927 version(Tango) override void run() 928 928 { 929 929 runCommon(); 930 930 } 931 else int run()931 else override int run() 932 932 { 933 933 return runCommon(); … … 1096 1096 1097 1097 static int [3] cols = [0,1,2]; 1098 char[][] vals;1098 string[] vals; 1099 1099 vals ~= "Antonio"; 1100 1100 vals ~= "Canada"; … … 1103 1103 1104 1104 testListStore.append(iterTop); 1105 char[][] vals1;1105 string[] vals1; 1106 1106 vals1 ~= "John Reimer"; 1107 1107 vals1 ~= "Canada"; … … 1110 1110 1111 1111 testListStore.append(iterTop); 1112 char[][] vals2;1112 string[] vals2; 1113 1113 vals2 ~= "Friend of GtkD 2"; 1114 1114 vals2 ~= "Poland"; … … 1117 1117 1118 1118 testListStore.append(iterTop); 1119 char[][] vals3;1119 string[] vals3; 1120 1120 vals3 ~= "Friend of GtkD 3"; 1121 1121 vals3 ~= "Norway"; … … 1214 1214 private import gtkc.Loader; 1215 1215 1216 void main( char[][] args)1216 void main(string[] args) 1217 1217 { 1218 1218
