~thalexander/+junk/hello-grid

« back to all changes in this revision

Viewing changes to src/hello-grid.vala

  • Committer: Alexander Hale
  • Date: 2017-01-25 15:05:49 UTC
  • Revision ID: thalexander@openmailbox.org-20170125150549-z4vdkgpr4qex665m
Create a grid with two labels

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    window.set_default_size (350, 70);
27
27
    window.destroy.connect (Gtk.main_quit);
28
28
 
 
29
    var grid = new Gtk.Grid ();
 
30
    grid.orientation = Gtk.Orientation.VERTICAL;
 
31
 
 
32
    grid.add (new Gtk.Label (_("Label 1")));
 
33
    grid.add (new Gtk.Label (_("Label 2")));
 
34
 
 
35
    window.add (grid);
29
36
    window.show_all ();
30
37
 
31
38
    Gtk.main ();