Advertisement
Whistik

Untitled

Jul 7th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. public class MyApp : Gtk.Application {
  2.  
  3. public MyApp () {
  4. Object (application_id: "com.github.myteam.myapp",
  5. flags: ApplicationFlags.FLAGS_NONE);
  6. }
  7.  
  8. protected override void activate () {
  9. var window = new Gtk.ApplicationWindow (this);
  10. window.title = "MyApp";
  11. window.set_default_size (1024, 768);
  12. window.show_all ();
  13. }
  14.  
  15. public static int main (string[] args) {
  16. var app = new MyApp ();
  17. return app.run (args);
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement