tests/test1.vala
[app.Builder.js] / tests / test1.vala
1 /*
2  valac  --pkg gio-2.0  --pkg posix  --pkg gtk+-3.0 --pkg libnotify --pkg  libwnck-3.0 \
3       test1.vala \
4     -o /tmp/test1
5
6
7
8 static int main (string[] args) {
9
10     Gtk.init (ref args);
11    // new Xcls_EditorWindow();
12     EditorWindow.show_all();
13      Gtk.main ();
14
15     return 0;
16 }
17  
18
19 */
20  
21 static   class EditorWindow : Gtk.Window
22 {
23     public static EditorWindow  _this;
24     public Xcls_save_button  save_button;
25     public  EditorWindow()
26     {
27          _this = this;
28          this.height_request = 300;
29          this.title = "Application Builder - Editor";
30          this.width_request = 500;
31          this.add (  new Xcls_VBox2() );
32     }
33     public class Xcls_VBox2 : Gtk.VBox
34     {
35         public Xcls_VBox2()
36         {
37              this.pack_start (  new Xcls_Toolbar3(), false,true );
38         }
39     }
40     public class Xcls_Toolbar3 : Gtk.Toolbar
41     {
42         public Xcls_Toolbar3()
43         {
44              this.add (  new Xcls_save_button() );
45         }
46     }
47     public class Xcls_save_button : Gtk.ToolButton
48     {
49         public Xcls_save_button()
50         {
51              _this.save_button = this;
52              this.label = "Save";
53         }
54     }
55 }
56
57