diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2011-09-21 20:13:49 -0400 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2011-09-27 13:43:21 -0400 |
commit | 8d3f7e3a4a5963005cff1609f4b78f0c8856d585 (patch) | |
tree | 99a5b404e9b17fac15ff4c4985f716786ac6b53a /gtk/gtkstylecontext.h | |
parent | d6a58e5bd3dbb1a3c61d1487d9baeeae8cccda24 (diff) | |
download | gtk+-8d3f7e3a4a5963005cff1609f4b78f0c8856d585.tar.gz |
stylecontext: add style classes for top/bottom/right/left areas
This is useful to e.g. theme notebook tabs differently according to
their position directly from the CSS sheet.
GtkNotebook support in a separate commit.
https://bugzilla.gnome.org/show_bug.cgi?id=659777
Diffstat (limited to 'gtk/gtkstylecontext.h')
-rw-r--r-- | gtk/gtkstylecontext.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/gtk/gtkstylecontext.h b/gtk/gtkstylecontext.h index 3e32c683cb..33cf5560fa 100644 --- a/gtk/gtkstylecontext.h +++ b/gtk/gtkstylecontext.h @@ -600,6 +600,45 @@ struct _GtkStyleContextClass */ #define GTK_STYLE_CLASS_VERTICAL "vertical" +/** + * GTK_STYLE_CLASS_TOP: + * + * A CSS class to indicate an area at the top of a widget. + * + * This is used by widgets that can render an area in different + * positions, such as tabs in a #GtkNotebook. + */ +#define GTK_STYLE_CLASS_TOP "top" + +/** + * GTK_STYLE_CLASS_BOTTOM: + * + * A CSS class to indicate an area at the bottom of a widget. + * + * This is used by widgets that can render an area in different + * positions, such as tabs in a #GtkNotebook. + */ +#define GTK_STYLE_CLASS_BOTTOM "bottom" + +/** + * GTK_STYLE_CLASS_LEFT: + * + * A CSS class to indicate an area at the left of a widget. + * + * This is used by widgets that can render an area in different + * positions, such as tabs in a #GtkNotebook. + */ +#define GTK_STYLE_CLASS_LEFT "left" + +/** + * GTK_STYLE_CLASS_RIGHT: + * + * A CSS class to indicate an area at the right of a widget. + * + * This is used by widgets that can render an area in different + * positions, such as tabs in a #GtkNotebook. + */ +#define GTK_STYLE_CLASS_RIGHT "right" /* Predefined set of widget regions */ |