Overview

screenshot.png

Notebook can also be used without extensions. Then they will not draw anything, and don't have any padding around themselfs. This is used for wizards (druids) and some other cases.

Style Properties

Name

Default

Description

has-secondary-backward-stepper

FALSE

Display a second backward arrow button on the opposite end of the tab area

has-secondary-forward-stepper

FALSE

Display a second forward arrow button on the opposite end of the tab area

has-backward-stepper

TRUE

Display the standard backward arrow button

has-forward-stepper

TRUE

Display the standard forward arrow button

tab-overlap

2

Size of tab overlap area (May be negative if the tabs should have a padding in between.)

tab-curvature

1

Size of tab curvature

Geometry

tab-geometry.png

tab-hborder and tab-vborder are properties of ../GtkNotebook and cannot be modified by the theme. The default value is two pixel.

Drawing

The main notebook is drawn with BOX_GAP, detail is "notebook", state NORMAL and shadow OUT. The extensions are drawn with the EXTENSION function. The selected extension has state = NORMAL and the others state = ACTIVE. The detail for the extension is "tab" and the shadow OUT. The extensions are drawn from right to left except for the selected one which is drawn last. It needs to be done this way so that overlapping works correctly.

The focus for the tabs is drawn with a detail of "tab". The state works the same as the one for the extensions. (Only the selected tab can have the focus, so state will always be NORMAL I think)

Bugs

Some versions of GTK+ 2.10 had a bug, which caused all notebook tabs to be the same height. (gnomebug:353962)

Questions

If you have any question, please ask on IRC or just add the question here (and don't check the "Trivial change" box).

GTK+ API Documentation

http://library.gnome.org/devel/gtk/stable/GtkNotebook.html

Attic/GnomeArt/Tutorials/GtkThemes/GtkNotebook (last edited 2013-11-27 14:33:55 by WilliamJonMcCann)