Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
17
Task/Hello-world-Graphical/Genie/hello-world-graphical.genie
Normal file
17
Task/Hello-world-Graphical/Genie/hello-world-graphical.genie
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
[indent=4]
|
||||
/*
|
||||
Genie GTK+ hello
|
||||
valac --pkg gtk+-3.0 hello-gtk.gs
|
||||
./hello-gtk
|
||||
*/
|
||||
uses Gtk
|
||||
|
||||
init
|
||||
Gtk.init (ref args)
|
||||
var window = new Window (WindowType.TOPLEVEL)
|
||||
var label = new Label("Goodbye, World!")
|
||||
window.add(label)
|
||||
window.set_default_size(160, 100)
|
||||
window.show_all()
|
||||
window.destroy.connect(Gtk.main_quit)
|
||||
Gtk.main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue