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 */
9 static int main (string[] args) {
10
11     Gtk.init (ref args);
12    // new Xcls_EditorWindow();
13     EditorWindow.show_all();
14      Gtk.main ();
15
16     return 0;
17 }
18  
19
20
21 //public static Xcls_EditorWindow  EditorWindow = new Xcls_EditorWindow ();
22
23
24  public static class EditorWindow : Gtk.Window
25 {
26     public static EditorWindow  _this;
27     public Xcls_save_button  save_button;
28     public  EditorWindow()
29     {
30          _this = this;
31          this.height_request = 300;
32          this.title = "Application Builder - Editor";
33          this.width_request = 500;
34          this.add (  new Xcls_VBox2() );
35     }
36     public class Xcls_VBox2 : Gtk.VBox
37     {
38         public Xcls_VBox2()
39         {
40              this.pack_start (  new Xcls_Toolbar3(), false,true );
41         }
42     }
43     public class Xcls_Toolbar3 : Gtk.Toolbar
44     {
45         public Xcls_Toolbar3()
46         {
47              this.add (  new Xcls_save_button() );
48         }
49     }
50     public class Xcls_save_button : Gtk.ToolButton
51     {
52         public Xcls_save_button()
53         {
54              _this.save_button = this;
55              this.label = "Save";
56         }
57     }
58 }
59
60