mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
Statusbar: add 'statusbar' style class
This commit is contained in:
parent
95aa4769f6
commit
4aca13e39e
@ -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:
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user