Advertisement
Guest User

Untitled

a guest
Dec 28th, 2013
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Vala 0.42 KB | None | 0 0
  1. // valac --pkg gtk+-3.0 --pkg gdk-x11-3.0 test.vala
  2.  
  3. public class App : Gtk.Application
  4. {
  5.     construct
  6.     {
  7.         application_id = "org.app.testing";
  8.     }
  9.  
  10.     public override void activate ()
  11.     {
  12.         print ("user time: %u\n",
  13.             Gdk.X11Display.get_user_time (Gdk.Display.get_default ()));
  14.         new Gtk.ApplicationWindow (this).show_all ();
  15.     }
  16. }
  17.  
  18. int main (string[] args)
  19. {
  20.     Gtk.init (ref args);
  21.     return new App ().run (args);
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement