~ubuntu-branches/ubuntu/saucy/monodevelop/saucy-proposed

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockFrame.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2012-02-05 10:49:36 UTC
  • mto: (10.3.1)
  • mto: This revision was merged to the branch mainline in revision 25.
  • Revision ID: package-import@ubuntu.com-20120205104936-4ujoylapu24cquuo
Tags: upstream-2.8.6.3+dfsg
ImportĀ upstreamĀ versionĀ 2.8.6.3+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
646
646
                                widget.AnimateHide ();
647
647
                        }
648
648
                        else {
 
649
                                // The widget may already be removed from the parent
 
650
                                // so 'parent' can be null
649
651
                                Gtk.Container parent = (Gtk.Container) item.Widget.Parent;
650
 
                                parent.Remove (item.Widget);
 
652
                                if (parent != null)
 
653
                                        parent.Remove (item.Widget);
651
654
                                RemoveTopLevel (widget);
652
655
                                widget.Disposed = true;
653
656
                                widget.Destroy ();