1. Overview
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.
2. 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 |
3. Geometry
tab-hborder and tab-vborder are properties of ../GtkNotebook and cannot be modified by the theme. The default value is two pixel.
4. 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)
5. Bugs
Some versions of GTK+ 2.10 had a bug, which caused all notebook tabs to be the same height. (gnomebug:353962)
6. Questions
If you have any question, please ask on IRC or just add the question here (and don't check the "Trivial change" box).