82
Gtk.Box content = new Gtk.Box (Gtk.Orientation.VERTICAL, 0);
85
content.homogeneous = false;
88
content.pack_start (new Gtk.Box (Gtk.Orientation.HORIZONTAL, 0), true, true, 0);
91
82
title_label = new Gtk.Label (null);
83
title_label.justify = Gtk.Justification.CENTER;
84
title_label.hexpand = true;
92
85
title_label.get_style_context ().add_class ("h1");
94
title_label.set_justify (Gtk.Justification.CENTER);
95
content.pack_start (title_label, false, true, 0);
97
87
subtitle_label = new Gtk.Label (null);
88
subtitle_label.justify = Gtk.Justification.CENTER;
89
subtitle_label.hexpand = true;
90
subtitle_label.wrap = true;
91
subtitle_label.wrap_mode = Pango.WrapMode.WORD;
98
92
subtitle_label.get_style_context ().add_class ("h2");
100
subtitle_label.set_line_wrap (true);
101
subtitle_label.set_line_wrap_mode (Pango.WrapMode.WORD);
102
subtitle_label.set_justify (Gtk.Justification.CENTER);
104
content.pack_start (subtitle_label, false, true, 2);
106
94
// Options wrapper
107
this.options = new Gtk.Box (Gtk.Orientation.VERTICAL, 8);
108
var options_wrapper = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 0);
110
options_wrapper.pack_start (new Gtk.Box (Gtk.Orientation.HORIZONTAL, 0), true, true, 0); // left padding
111
options_wrapper.pack_start (this.options, false, false, 0); // actual options
112
options_wrapper.pack_end (new Gtk.Box (Gtk.Orientation.HORIZONTAL, 0), true, true, 0); // right padding
114
content.pack_start (options_wrapper, false, false, 20);
117
content.pack_end (new Gtk.Box (Gtk.Orientation.HORIZONTAL, 0), true, true, 0);
95
this.options = new Gtk.Box (Gtk.Orientation.VERTICAL, 9);
96
options.halign = Gtk.Align.CENTER;
99
var content = new Gtk.Grid ();
100
content.expand = true;
101
content.margin_top = 12;
102
content.valign = Gtk.Align.CENTER;
103
content.orientation = Gtk.Orientation.VERTICAL;
104
content.add (title_label);
105
content.add (subtitle_label);
106
content.add (options);