void AddAttribute(HBox fieldsBox, ExtensionNodeDescription node, string name, string type, bool req) { HBox box = new HBox(); Gtk.Label lab = new Gtk.Label(); lab.Markup = "<b>" + name + "</b>=\""; box.PackStart(lab, false, false, 0); Gtk.Entry entry = new AutoSizeEntry(); entry.Text = node.GetAttribute(name); box.PackStart(entry, false, false, 0); box.PackStart(new Gtk.Label("\" "), false, false, 0); fieldsBox.PackStart(box, false, false, 0); }
void AddAttribute (HBox fieldsBox, ExtensionNodeDescription node, string name, string type, bool req) { HBox box = new HBox (); Gtk.Label lab = new Gtk.Label (); lab.Markup = "<b>" + name + "</b>=\""; box.PackStart (lab, false, false, 0); Gtk.Entry entry = new AutoSizeEntry (); entry.Text = node.GetAttribute (name); box.PackStart (entry, false, false, 0); box.PackStart (new Gtk.Label ("\" "), false, false, 0); fieldsBox.PackStart (box, false, false, 0); }