Advertisement
rotrevrep

Untitled

Sep 8th, 2014
1,311
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data Copied
Advertisement