Commit 4aca13e3 authored by Lapo Calamandrei's avatar Lapo Calamandrei

Statusbar: add 'statusbar' style class

parent 95aa4769
......@@ -6046,6 +6046,7 @@ GTK_STYLE_CLASS_SIDEBAR
GTK_STYLE_CLASS_SLIDER
GTK_STYLE_CLASS_SPINBUTTON
GTK_STYLE_CLASS_SPINNER
GTK_STYLE_CLASS_STATUSBAR
GTK_STYLE_CLASS_SUBTITLE
GTK_STYLE_CLASS_SUGGESTED_ACTION
GTK_STYLE_CLASS_TITLE
......
......@@ -183,10 +183,14 @@ gtk_statusbar_init (GtkStatusbar *statusbar)
{
GtkStatusbarPrivate *priv;
GtkShadowType shadow_type;
GtkStyleContext *context;
statusbar->priv = gtk_statusbar_get_instance_private (statusbar);
priv = statusbar->priv;
context = gtk_widget_get_style_context (GTK_WIDGET (statusbar));
gtk_style_context_add_class (context, GTK_STYLE_CLASS_STATUSBAR);
priv->seq_context_id = 1;
priv->seq_message_id = 1;
priv->messages = NULL;
......
......@@ -354,6 +354,17 @@ struct _GtkStyleContextClass
*/
#define GTK_STYLE_CLASS_INLINE_TOOLBAR "inline-toolbar"
/**
* GTK_STYLE_CLASS_STATUSBAR:
*
* A CSS class to match statusbars.
*
* This is used in #GtkStatusbar.
*
* Since: 3.16
*/
#define GTK_STYLE_CLASS_STATUSBAR "statusbar"
/**
* GTK_STYLE_CLASS_RADIO:
*
......
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