Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main (string[] args) {
- Gtk.init (ref args);
- var win = new Gtk.Window();
- win.key_press_event.connect (event => {
- // do something here.
- return true;
- });
- win.destroy.connect (Gtk.main_quit);
- win.show_all();
- Gtk.main();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement