diff options
Diffstat (limited to 'gtk/gtkstylecontext.h')
-rw-r--r-- | gtk/gtkstylecontext.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gtk/gtkstylecontext.h b/gtk/gtkstylecontext.h index 53aaae9729..729613c036 100644 --- a/gtk/gtkstylecontext.h +++ b/gtk/gtkstylecontext.h @@ -258,13 +258,24 @@ struct _GtkStyleContextClass /** * GTK_STYLE_CLASS_MENU: * - * A CSS class to match popup menus. + * A CSS class to match menus. * * This is used in #GtkMenu. */ #define GTK_STYLE_CLASS_MENU "menu" /** + * GTK_STYLE_CLASS_CONTEXT_MENU: + * + * A CSS class to match context menus. + * + * This style class is useful when you want to prevent + * a context menu from inheriting e.g. font changes from + * the widget it is attached to. + */ +#define GTK_STYLE_CLASS_CONTEXT_MENU "context-menu" + +/** * GTK_STYLE_CLASS_MENUBAR: * * A CSS class to menubars. |