Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class helloworld : Granite.Application {
- construct {
- program_name = "Hello world";
- }
- public void helloword () {
- var w = new Granite.Widgets.LightWindow ("Hello world");
- var b = new Gtk.Box (Gtk.Orientation.VERTICAL, 0);
- var label = new Gtk.Label ("helloword");
- b.pack_start (label);
- w.set_size_request (100, 100);
- w.set_application (this);
- w.add (b);
- w.show_all ();
- w.resizable = false;
- }
- }
- public static int main (string [] args) {
- Gtk.init (ref args);
- return new helloword ().run (args);
- }
Add Comment
Please, Sign In to add comment