2023-02-26 00:50
This commit is contained in:
21
hello-gtk/src/gtk_foobar.vala~
Normal file
21
hello-gtk/src/gtk_foobar.vala~
Normal file
@@ -0,0 +1,21 @@
|
||||
using kr.pe.elex.hello_world;
|
||||
|
||||
namespace kr.pe.elex.hello_world {
|
||||
|
||||
class MyApplication : Gtk.Application {
|
||||
|
||||
protected override void activate () {
|
||||
var window = new Gtk.ApplicationWindow (this);
|
||||
window.set_title ("Welcome to GNOME");
|
||||
window.set_default_size (200, 100);
|
||||
var label = new Gtk.Label ("Hello GNOME!");
|
||||
window.add (label);
|
||||
window.show_all ();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
int main (string[] args) {
|
||||
return new MyApplication ().run (args);
|
||||
}
|
||||
Reference in New Issue
Block a user