Re: Docking widget for GTK 2.4

On Thu, 2003-04-10 at 14:11, Michael Meeks wrote:
> On Wed, 2003-04-09 at 16:15, Havoc Pennington wrote:
> > Two things to consider for a dock widget:
>  One particularly nice side-effect of having a powerful dock widget that
> can dock large views as well as misc. toolbars is that it would provide
> an API usable for MDI that may keep quiet the people that still think
> generalized MDI is a good idea ;-)

We will get MDI more-or-less automatically with GdlDock if we create
each view as a GtkDockItem IMO (ni window mode, just tabbed, paned or

I'm not sure how suitable GdlDock will be as containers for menubars and
toolbars. I was thinking along the lines of creating GdlDockBand (that's
in Gustavo's README as well) similar to BonoboDockBand and let it handle
the UI elements.

Once we have GtkDock and GtkDockBand, we can have a GtkApp like so:

class GtkDockObject: public GtkContainer
class GtkDockBand: public GtkDockObject
class GtkDock: public GtkDockObject
class GtkApp: public GtkWindow {
	GtkDockBand ui_area;
	GtkDockBand status_area;
	GtkDock client_area;
This should take care of DockBand-ing menus and toolbars properly, no ?
Also, if I'm not mistaken, QT/KDE have a somewhat similar structure in

Does this make sense ? Or am I talking out of my hat here ?

IN any case, I'll try to make a new module for GdlDock with GTK+
dependency only and post a URL here soon so that people can try it out

>  Hmm,.
>   Michael.
> --
>  mmeeks gnu org  <><, Pseudo Engineer, itinerant idiot

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]