bool SelectedHandler () { SaveStatus (); Clear (); selection = newSelection; if (selection == null || selection.Wrapped is ErrorWidget || project == null) { return false; } Wrapper.Widget selWidget = selection as Wrapper.Widget; if (selWidget != null) { selWidget.Notify += Notified; PropertyDescriptor name = (PropertyDescriptor)Registry.LookupClassByName ("Gtk.Widget") ["Name"]; AppendProperty (name, selection.Wrapped); } AddProperties (selection.ClassDescriptor.ItemGroups, selection.Wrapped, project.TargetGtkVersion); if (selWidget != null) { packingSelection = Stetic.Wrapper.Container.ChildWrapper (selWidget); if (packingSelection != null) { ClassDescriptor childklass = packingSelection.ClassDescriptor; if (childklass.ItemGroups.Count > 0) { AddProperties (childklass.ItemGroups, packingSelection.Wrapped, project.TargetGtkVersion); packingSelection.Notify += Notified; } } } RestoreStatus (); return false; }