protected override ObjectWrapper ReadChild(ObjectReader reader, XmlElement child_elem)
 {
     if ((string)GladeUtils.GetChildProperty(child_elem, "type", "") == "label_item")
     {
         ObjectWrapper wrapper = reader.ReadObject(child_elem["widget"]);
         frame.LabelWidget = (Gtk.Widget)wrapper.Wrapped;
         return(wrapper);
     }
     else
     {
         return(base.ReadChild(reader, child_elem));
     }
 }
Beispiel #2
0
 protected override ObjectWrapper ReadChild(ObjectReader reader, XmlElement child_elem)
 {
     if ((string)GladeUtils.GetChildProperty(child_elem, "type", "") == "tab")
     {
         ObjectWrapper wrapper = reader.ReadObject(child_elem["widget"]);
         Gtk.Widget    widget  = (Gtk.Widget)wrapper.Wrapped;
         notebook.SetTabLabel(notebook.GetNthPage(notebook.NPages - 1), widget);
         tabs.Add(widget);
         return(wrapper);
     }
     else
     {
         return(base.ReadChild(reader, child_elem));
     }
 }