Commit e97cf2fd authored by Matthias Clasen's avatar Matthias Clasen

Add GTK_STYLE_CLASS_POPUP to the docs

parent 3b636cbe
......@@ -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
......
......@@ -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
......
......@@ -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:
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment