Advertisement
rotrevrep

Untitled

Oct 12th, 2013
1,097
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using Gtk;
  2.  
  3. public class Activity : Box {
  4.    
  5.     private SpinButton spin_box;
  6.    
  7.     public Activity (){
  8.         GLib.Object (orientation: Orientation.VERTICAL, spacing: 5);
  9.     }
  10.    
  11.     construct {
  12.         spin_box = new SpinButton.with_range (0, 130, 1);      
  13.         spin_box.adjustment.value = 35;
  14.        
  15.         homogeneous = true;
  16.         add (spin_box);
  17.     }
  18. }
  19.  
  20. void main(string[] args) {
  21.     Gtk.init (ref args);
  22.     var win = new Window ();
  23.     var act = new Activity ();
  24.     win.add (act);
  25.     win.show_all ();
  26.     Gtk.main ();
  27. }
Advertisement
RAW Paste Data Copied
Advertisement