Stetic.PluggableWidget.AddCustomWidget C# (CSharp) Method

AddCustomWidget() protected method

protected AddCustomWidget ( Gtk w ) : void
w Gtk
return void
        protected void AddCustomWidget(Gtk.Widget w)
        {
            w.ShowAll ();
            book.AppendPage (w, null);
            book.Page = book.NPages - 1;

            if (initialized) {
                Gtk.Widget cw = book.GetNthPage (0);
                book.RemovePage (0);
                cw.Destroy ();
            }
            else
                initialized = true;
            customWidget = true;
        }