Statusbar: add 'statusbar' style class

This commit is contained in:
Lapo Calamandrei 2014-11-11 17:23:04 +01:00
parent 95aa4769f6
commit 4aca13e39e
3 changed files with 16 additions and 0 deletions

View File

@ -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

View File

@ -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;

View File

@ -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:
*