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