[Gtk-sharp-list] Glade & Viewport

Freon Freon <freongrr@gmail.com>
Sun, 29 Aug 2004 10:15:34 +0200


Something like this should work:

                        [Widget] protected Widget yourWidget = null;
                        ...
                         Glade.XML gxml = new Glade.XML("gui.glade",
"yourWidget", null);
                        gxml.Autoconnect (this);
                        this.viewPort.Add(yourWidget);

Of course, this widget needs to be placed inside a window in Glade,
but you don't have to use it.

On Sat, 28 Aug 2004 19:52:03 -0400, Adam Tauno Williams
<awilliam@whitemice.org> wrote:
> Is it possible to use glade to create an XML file that can be loaded
> into a viewport rather than attached to an entire window?
> 
> I'm writing an app that loads in modules and it would be handy to be
> able to use glade files for setting up the ui, rather than building the
> widget hierarchy in code.
> 
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>