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
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 //public static Xcls_EditorWindow  EditorWindow = new Xcls_EditorWindow ();
21
22
23 static public class EditorWindow : Gtk.Window
24 {
25     public static EditorWindow  _this;
26     public Xcls_save_button  save_button;
27     public Xcls_EditorWindow()
28     {
29          _this = this;
30          this.height_request = 300;
31          this.title = "Application Builder - Editor";
32          this.width_request = 500;
33          this.add (  new Xcls_VBox2() );
34     }
35     public class Xcls_VBox2 : Gtk.VBox
36     {
37         public Xcls_VBox2()
38         {
39              this.pack_start (  new Xcls_Toolbar3(), false,true );
40         }
41     }
42     public class Xcls_Toolbar3 : Gtk.Toolbar
43     {
44         public Xcls_Toolbar3()
45         {
46              this.add (  new Xcls_save_button() );
47         }
48     }
49     public class Xcls_save_button : Gtk.ToolButton
50     {
51         public Xcls_save_button()
52         {
53              _this.save_button = this;
54              this.label = "Save";
55         }
56     }
57 }
58
59