Ethereal-dev: Re: [Ethereal-dev] Toolbar

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Tue, 14 Oct 2003 11:10:44 -0700
On Tue, Oct 14, 2003 at 01:53:37PM +0200, Ulf Lamping wrote:
> Well, that's exactly what the preference setting "off" will be for ;-)
> (...  or should this better be named "none"?)

Do you even need a preference?

There appears to be a small textured area to the left of the toolbar; in
Netscape 4.x, at least, a similarly-textured area can be clicked to
"minimize" the toolbar to the left of which it appears (or dragged to
move the toolbar), although the Netscape one has a small triangle above
the texturing that points down if the toolbar is visible and to the
right if it's minimized, so perhaps the "minimize" option isn't
available in GTK+'s toolbar.

Qt's toolbar has support for "close buttons" which might offer that
functionality.  I haven't looked at what Windows or Aqua offer.

If it does need a preference, I'm curious whether other applications
offer a "show toolbar"/"add toolbar" option and, if so, where they put
that option.

> Before this, I have the following questions:
> 
> The toolbar icons are 15 seperate files in format .xpm., as that's the
> format GTK1 understands it.  Where should these icon files put into? I'm
> currently using the dir /image/toolbar for this.  Is this ok, or better
> placed at a gtk/toolbar dir?

Qt, it appears, can also handle XPM files in buttons; I'd be inclined to
put them in image/toolbar - if we ever support a toolkit that can't
handle XPM, the images we'd need would probably have other suffixes, and
we could put them there as well.

We should probably consider using the GTK+ stock items when using GTK+
2.x (assuming you aren't already doing that).