Add GTK_STYLE_CLASS_POPUP to the docs

This commit is contained in:
Matthias Clasen 2014-06-12 09:09:30 -04:00
parent 3b636cbeb9
commit e97cf2fd0b
3 changed files with 12 additions and 1 deletions

View File

@ -5998,6 +5998,7 @@ GTK_STYLE_CLASS_NEEDS_ATTENTION
GTK_STYLE_CLASS_NOTEBOOK
GTK_STYLE_CLASS_OSD
GTK_STYLE_CLASS_PANE_SEPARATOR
GTK_STYLE_CLASS_POPUP
GTK_STYLE_CLASS_PRIMARY_TOOLBAR
GTK_STYLE_CLASS_PROGRESSBAR
GTK_STYLE_CLASS_PULSE

View File

@ -1100,7 +1100,8 @@ gtk_menu_init (GtkMenu *menu)
gtk_window_set_mnemonic_modifier (GTK_WINDOW (priv->toplevel), 0);
_gtk_window_request_csd (GTK_WINDOW (priv->toplevel));
gtk_style_context_add_class (gtk_widget_get_style_context (priv->toplevel), "popup");
gtk_style_context_add_class (gtk_widget_get_style_context (priv->toplevel),
GTK_STYLE_CLASS_POPUP);
/* Refloat the menu, so that reference counting for the menu isn't
* affected by it being a child of the toplevel

View File

@ -798,6 +798,15 @@ struct _GtkStyleContextClass
/* Predefined set of widget regions */
/**
* GTK_STYLE_CLASS_POPUP:
*
* A CSS class that is added to the toplevel windows used for menus.
*
* Since: 3.14
*/
#define GTK_STYLE_CLASS_POPUP "popup"
/**
* GTK_STYLE_REGION_ROW:
*