~enso-os/+junk/welcome

« back to all changes in this revision

Viewing changes to src/View/WelcomeView.vala

  • Committer: Nick Wilkins
  • Date: 2018-06-12 08:47:39 UTC
  • Revision ID: nickawilkins@hotmail.com-20180612084739-z2ezofjahbn3kzh2
update welcome code

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
***/
18
18
 
19
19
namespace Welcome {
20
 
        
 
20
 
21
21
        public class WelcomeView : Gtk.EventBox {
22
 
                
23
 
                private Granite.Widgets.Welcome agenda_welcome;
 
22
 
 
23
                private Granite.Widgets.Welcome enso_welcome;
24
24
                private Gtk.Image                               rose_image;
25
25
                private Gtk.Grid                                grid;
26
 
                
 
26
 
27
27
                construct {
28
28
                        /**
29
 
             *  Initialize the GUI components
30
 
             */
31
 
            agenda_welcome = new Granite.Widgets.Welcome (_("Welcome to Enso!"), _("0.3 - Rabling Rose"));
32
 
                                                           
33
 
                        rose_image = new Gtk.Image.from_pixbuf (new Gdk.Pixbuf.from_resource ("/org/enso/welcome/icon/flower.svg"));
34
 
                        
 
29
           *  Initialize the GUI components
 
30
         */
 
31
      enso_welcome = new Granite.Widgets.Welcome (_("Welcome to Enso!"), _("0.3 - Rabling Rose"));
 
32
 
 
33
                        rose_image = new Gtk.Image.from_pixbuf (new Gdk.Pixbuf.from_resource_at_scale ("/org/enso/welcome/icon/flower.svg", 400, 400, true));
 
34
 
35
35
                        grid = new Gtk.Grid ();
36
36
                        grid.expand = true;   // expand the box to fill the whole window
37
 
            grid.row_homogeneous = false;
38
 
                        grid.attach (agenda_welcome, 0, 0, 1, 1);
 
37
      grid.row_homogeneous = false;
 
38
                        grid.attach (enso_welcome, 0, 0, 1, 1);
39
39
                        grid.attach (rose_image, 0, 1, 1, 1);
40
 
                        
 
40
 
41
41
                        add(grid);
42
42
                }
43
43
        }
44
 
        
 
44
 
45
45
}