public void RemoveWidget(Gtk.Widget w)
 {
     foreach (TopLevelChild info in topLevels)
     {
         if (info.Child == w)
         {
             w.Unparent();
             topLevels.Remove(info);
             break;
         }
     }
 }
Example #2
0
        protected override void OnRemoved(Gtk.Widget widget)
        {
            HideTiles();

            widget.Unparent();

            tiles.Remove((Tiles.Tile)widget);

            tileIndex = Math.Min(Math.Max(tiles.Count - 1, 0), tileIndex);

            if (Expanded)
            {
                ShowTiles();
            }
        }
        protected override void OnRemoved(Gtk.Widget widget)
        {
            LayoutChild child = null;

            foreach (var c in children)
            {
                if (child.Widget == widget)
                {
                    child = c;
                    break;
                }
            }

            if (child != null)
            {
                widget.Unparent();
                children.Remove(child);
            }
        }
Example #4
0
 protected override void OnRemoved(Widget w)
 {
     int i = GetWidgetPosition (w);
     if (i != -1) {
         widgets.RemoveAt (i);
         w.Unparent ();
         QueueResize ();
     }
 }
Example #5
0
		protected override void OnRemoved (Widget widget)
		{
			widget.Unparent ();
			foreach (var info in children.ToArray ()) {
				if (info.Child == widget) {
					children.Remove (info);
					break;
				}
			}
		}
 protected override void OnRemoved(Gtk.Widget widget)
 {
     children.Remove(widget);
     widget.Unparent();
 }
 protected override void OnRemoved (Widget widget)
 {
     if (widget == Widget) {
         widget.Unparent ();
         Widget = null;
     }
 }
		protected override void OnRemoved (Widget widget)
		{
			widget.Unparent ();
			children.RemoveAll (c => c.Child == widget);
		}
Example #9
0
		protected override void OnRemoved (Widget widget)
		{
			System.Diagnostics.Debug.Assert (
				widget.Parent == this,
				"Widget is not parented on this widget");

			widget.Unparent ();
		}
Example #10
0
		protected override void OnRemoved (Widget widget)
		{
			for (int i = 0; i < sections.Count; i++) {
				var section = sections[i];
				if (section.Child == widget) {
					widget.Unparent ();
					section.Parent = null;
					section.Child = null;
					sections.RemoveAt (i);
					break;
				}
			}
		}
		protected override void OnRemoved (Widget widget)
		{
			foreach (EditorContainerChild info in containerChildren.ToArray ()) {
				if (info.Child == widget) {
					widget.Unparent ();
					containerChildren.Remove (info);
					break;
				}
			}
		}
Example #12
0
File: Grid.cs Project: mono/stetic
 protected override void OnRemoved(Widget w)
 {
     w.Unparent ();
 }
Example #13
0
		protected override void OnRemoved (Widget widget)
		{
			System.Diagnostics.Debug.Assert (
				widget.Parent != this,
				"Widget is not parented on this widget");
			System.Diagnostics.Debug.Assert (
				System.Linq.Enumerable.Any (items, item => item.Widget == widget),
				"Can only remove widgets from the container that are in the parent DockFrame's DockItem collection");

			widget.Unparent ();
		}
        protected override void OnRemoved(Widget widget)
        {
            bool wasVisible = widget.Visible;

            if (grip == widget) {
                widget.Unparent ();
                grip = null;
                if (wasVisible)
                    QueueResize ();
                return;
            } else if (widget != Child) {
                return;
            }

            if (InDrag)
                EndDrag (true);

            widget.Unparent ();
            Child = null;

            if (wasVisible)
                QueueResize ();
        }
Example #15
0
        protected override void OnRemoved(Widget widget)
        {
            bool wasVisible = widget.Visible;

            if (root == widget) {
                root.DockObjectFlags &= ~(DockObjectFlags.Attached);
                root = null;
                widget.Unparent ();

                if (wasVisible && Visible)
                    QueueResize ();
            }
        }