Advertisement
rotrevrep

Untitled

Sep 8th, 2014
3,270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Vala 0.25 KB | None | 0 0
  1. public static void main (string[] args) {
  2.     Gtk.init (ref args);
  3.     var win = new Gtk.Window();
  4.     win.key_press_event.connect (event => {
  5.         // do something here.
  6.         return true;
  7.     });
  8.     win.destroy.connect (Gtk.main_quit);
  9.     win.show_all();
  10.     Gtk.main();
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement