There is some documentation for this particular function at:
  http://developer.gnome.org/doc/API/libgnomeui/gnomeapp.html#GNOME-APP-ADD-TOOLBAR

The first argument is the GtkToolbar widget.  The second is a unique name
for the toolbar (used in saving the layout of the dock items).  The next
argument allows you to set the behaviour for the toolbar.  Usually you
will just want to use DOCK_ITEM_BEH_NORMAL (you can OR a few of these
constants together).  Use DOCK_ITEM_BEH_EXCLUSIVE if you want your
toolbar to take up a whole dock band.  The next argument gives the
position for the toolbar -- DOCK_TOP is probably what you want.  Next is
the band number.  In the default setup, the menubar is in band 0 of the
north edge of the window, and the normal toolbar is in band 1.  You
probably want band 2.  When using non exclusive toolbars, you can put
multiple toolbars in a single band.  The next argument lets you set the
position in the band (0 is the first position).  The last argument gives
the offset from the previous toolbar in the band.  Usually you will want
to use 0.

Note that most of these options specify defaults.  The dock layout is
saved when you quit the application, and loaded when you start it again.
The behaviour argument will be honoured though.

James.

--
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


On Tue, 27 Jul 1999, Sebastien Kessler wrote:

> Hi,
> 
> Thanks but still, what do the arguments from add_toolbar(self, toolbar,
> name, behavior, placement, band_num,band_position, offset) mean ? And is
> there an easy way to do an item to the toolbar once the toolbar is shown ?
> 
> Best,
> S.Kessler
> 
> James Henstridge wrote:
> 
> > In the current GNOME API, there is no nice and easy way to add a second
> > toolbar like you can the first with gnome_app_create_toolbar().  If you
> > use the GnomeApp.add_toolbar function, you need to pass it a GtkToolbar
> > widget, rather than a GnomeUIInfo type structure as in the
> > create_toolbar() method.
> >
> > There is a gnome_app_fill_toolbar function that can be used to fill a
> > GtkToolbar widget using information from a GnomeUIInfo type structure.  I
> > don't have a wrapper for this currently though.
> >
> > James.
> >
> > --
> > Email: [EMAIL PROTECTED]
> > WWW:   http://www.daa.com.au/~james/
> >
> > On Mon, 26 Jul 1999, Sebastien Kessler wrote:
> >
> > > I am trying to add a second toolbar to my GnomeApp application. Using a
> > > second time create_toolbar() brings strange behaviour (only once the
> > > first toolbar is moved *and* the application re-executed, the second
> > > toolbar appears. And it disappears if you execute again the application
> > > !).
> > >
> > > There's the add_toolbar(self, toolbar, name, behavior, placement,
> > > band_num,band_position, offset) method but I cannot figure out the
> > > arguments - nothing I tried work properly. Can you help ?
> > >
> > > By the way, these arguments are almost the same as add_dock_item(self,
> > > item, placement, band_num, band_position,offset): is this fo fix items
> > > in the GnomeApp ?
> > >
> > > Best,
> > > S.Kessler
> > >
> > >
> > > --
> > > [EMAIL PROTECTED]
> > >
> > > To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
> 

To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to