32
32
namespace MonoDevelop.Ide.WelcomePage
34
public class WelcomePageLinksList : VBox
34
public class WelcomePageLinksList : WelcomePageSection
36
public WelcomePageLinksList (XElement el)
36
public WelcomePageLinksList (string title = null, Gtk.IconSize iconSize = IconSize.Menu, bool homogeneous = false, params WelcomePageLinkButton[] links): base (title)
38
IconSize iconSize = IconSize.Menu;
39
var iconSizeAtt = el.Attribute ("iconSize");
40
if (iconSizeAtt != null) {
41
iconSize = (IconSize) Enum.Parse (typeof (IconSize), (string) iconSizeAtt);
44
var homogeneousAtt = el.Attribute ("homogeneous");
45
if (homogeneousAtt != null)
46
this.Homogeneous = (bool) homogeneousAtt;
48
foreach (var child in el.Elements ()) {
49
if (child.Name != "Link")
50
throw new InvalidOperationException ("Unexpected child '" + child.Name + "'");
51
var button = new WelcomePageLinkButton (child, iconSize);
52
this.PackStart (button, true, false, 0);
38
Gtk.VBox box = new VBox ();
39
box.Homogeneous = homogeneous;
41
foreach (var button in links)
42
box.PackStart (button, true, false, 0);
b'\\ No newline at end of file'