[Glade-users] Can I create just a plain tab bar?

On Fri, 2007-03-23 at 14:18 -0700, Dylan McCall wrote:
So what is a nice way with Glade to have just a simple, independent
tab bar to which tabs can be easily added / removed on the fly?

You *can* create a GtkNotebook, give it no children, pack it into a box
with expand turned off, and then hook in to its tab switch signals to
adjust your list box controls.  However, this will have some visual
issues and won't look quite right (Vim's GTK2 gui does this, and it's
rather annoying visually).

You could also create your notebook, and then actually use separate
TreeView's for each tab; you can have a tree view/model factory that
creates a new view to add to the notebook when the user wants to add a

What you might look at, though, is a combo/dropdown.  If you put one of
those over your list, you can add/remove things as you wish and, with
appropriate layout, it can flow quite well (and take up less screen real

If you really want to, you may be able to create a widget that uses the
GtkStyle stuff to paint notebook tabs without the visual problems of
(ab)using a GtkNotebook for this purpose.

- Michael

Michael Ekstrand
Research Assistant, Scalable Computing Laboratory
Goanna, compute cluster and InfiniBand network monitor tool:

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