It would be useful to create top-level panels using glade where a panel
is a container with a number of widgets placed on it.

If I called a panel, test_panel, whose top widget is a GtkVBox then the
generated 'C' code would have a function, create_test_panel, which would
build a GtkVBox widget, add the other widgets and return a pointer to
the GtkVBox i.e.

GtkWidget*
create_test_panel()
{
    GtkWidget *test_panel;
    // other widgets

    test_panel = gtk_vbox_new(...);
    // other code

    return test_panel;
}

This is really useful when many parts of an application use a common set
of widgets. Obviously, the code I write would be responsible for
creating one of these things and adding it to the correct container
widget.

Perhaps the glade UI could have a "panel" button in the palette. So for
my above example I would create a panel and then add a GtkVBox to it
followed by whatever other widgets I wanted.

Taking this idea further, glade could actually have a panel pallette
which lists the panels in the project. You could then use these panels
in glade as if they were simple widgets with minimal properties and the
source generators could actually produce the code which uses the panels.

Please fell free to completely ignore this - glade will still be one of
the better GUI designers around!

--
* Matt Goodall, [EMAIL PROTECTED]
* Isotek Electronics Ltd
* Claro House, Servia Road, Leeds, LS7 1NL. England


begin:vcard 
n:Goodall;Matt
tel;fax:+44 113 234 2918
tel;work:+44 113 234 3202/3
x-mozilla-html:TRUE
org:Isotek Electronics Ltd
adr;quoted-printable:;;Claro House=0D=0AServia Road;Leeds;W.Yorks;LS7 1NL;England
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
x-mozilla-cpt:;-21184
fn:Matt Goodall
end:vcard

Reply via email to