summaryrefslogtreecommitdiff
path: root/gtk/gtkstatusbar.c
diff options
context:
space:
mode:
authorLapo Calamandrei <calamandrei@gmail.com>2014-11-11 17:23:04 +0100
committerLapo Calamandrei <calamandrei@gmail.com>2014-11-11 17:23:04 +0100
commit4aca13e39e2b1cd2ccfd8aa9dc5c11b5d9e36baf (patch)
tree8bcd5753682b3a1d56a08b6981efb443ac2ed581 /gtk/gtkstatusbar.c
parent95aa4769f692b2144c80a62eefeb5c63273ba81a (diff)
downloadgtk+-4aca13e39e2b1cd2ccfd8aa9dc5c11b5d9e36baf.tar.gz
Statusbar: add 'statusbar' style class
Diffstat (limited to 'gtk/gtkstatusbar.c')
-rw-r--r--gtk/gtkstatusbar.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkstatusbar.c b/gtk/gtkstatusbar.c
index 18f974e6bb..9cb3106670 100644
--- a/gtk/gtkstatusbar.c
+++ b/gtk/gtkstatusbar.c
@@ -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;