test.vala 419 B

12345678910111213141516171819202122
  1. using Gtk;
  2. [GtkTemplate (ui="/org/test/appwindow.ui")]
  3. class TestWindow : Gtk.ApplicationWindow {
  4. public TestWindow(Gtk.Application app) {
  5. Object(application: app);
  6. }
  7. }
  8. class TestApp : Gtk.Application {
  9. public override void activate() {
  10. var window = new TestWindow(this);
  11. window.show_all();
  12. }
  13. }
  14. int main(string[] args) {
  15. var app = new TestApp();
  16. return app.run();
  17. }