diff options
author | Soeren Sandmann <sandmann@daimi.au.dk> | 2003-07-06 13:14:28 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2003-07-06 13:14:28 +0000 |
commit | c8515b2f8d22c9856fc58f71398eea9e13695fb1 (patch) | |
tree | 717fed71a7377b7729c73a610f1eb16463bd130d /docs/widget_geometry.txt | |
parent | ba999da1d8528afdb7cf810e626bd1ab3946ff17 (diff) | |
download | gtk+-c8515b2f8d22c9856fc58f71398eea9e13695fb1.tar.gz |
add vertical_padding style property.
Sat Jul 5 10:34:00 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtkmenu.c: add vertical_padding style property.
* gtk/gtkmenuitem.c: add style properties toggle_spacing,
arrow_spacing and horizontal_padding. Also center separators and
make them a bit taller.
* gtk/*menuitem.c: use new style properties.
* docs/widget_geometry.txt: Add note about GtkMenuItem
* gtk/gtkstyle.c
(gtk_default_draw_vline, gtk_default_draw_hline):
fix +/-1 errors.
(gtk_default_draw_shadow): draw a black border around menus.
* gtk/gtkvseparator, gtk/gtkhseparator.c, gtk/gtkmenuitem.c: fix
calls to gtk_paint_hline() and gtk_paint_vline() (they take x1,
x2 and y1, y2 respectively, not x, width and y, height).
Diffstat (limited to 'docs/widget_geometry.txt')
-rw-r--r-- | docs/widget_geometry.txt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/docs/widget_geometry.txt b/docs/widget_geometry.txt index c7076f251e..882ecbb944 100644 --- a/docs/widget_geometry.txt +++ b/docs/widget_geometry.txt @@ -2,6 +2,38 @@ This file is some notes about how different widgets are drawn. ============= +GtkMenuItem + +============= + +arrowspacing +togglespacing +horizontal_padding + + B + ------------------ + A C D E G A ++----+----------+-----+----------------------+----+-----------+----+ +| | | | ^ | | | | +| | | | | | | | | +| | | | | | | | | +| | | | | | | | | +| | icon | | child | G | | | | +| | | | | | | | | +| | | | | | | | | +| | | | | | | | | +| | | | v | | | | ++----+----------+-----+----------------------+----+-----------+----+ + +A: horizontal_padding +B: width of icon or indicator + toggle_spacing +C: toggle_spacing +D: child's requested size +E: arrow spacing (if the item has a submenu +G: child's requested height (also used for width of arrow field + +============= + GtkOptionMenu: ============= |