internal void SetAutoHideMode(Gtk.PositionType pos, int size) { ResetMode(); if (widget != null) { widget.Hide(); // Avoids size allocation warning widget.Unparent(); } dockBarItem = frame.BarDock(pos, this, size); if (widget != null) { widget.UpdateBehavior(); } }
internal void SetAutoHideMode(Gtk.PositionType pos, int size) { ResetMode(); if (widget != null) { widget.Hide(); // Avoids size allocation warning if (widget.Parent != null) { ((Gtk.Container)widget.Parent).Remove(widget); } } dockBarItem = frame.BarDock(pos, this, size); if (widget != null) { widget.UpdateBehavior(); } }