From d5c4a0f503e997b10586e74214422fcecb5e38c2 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Wed, 2 Mar 2011 22:55:25 -0500 Subject: all: add a "separator" style class --- gtk/gtkseparator.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gtk/gtkseparator.c') diff --git a/gtk/gtkseparator.c b/gtk/gtkseparator.c index 687139fd4a..66c18889f9 100644 --- a/gtk/gtkseparator.c +++ b/gtk/gtkseparator.c @@ -101,6 +101,7 @@ static void gtk_separator_init (GtkSeparator *separator) { GtkSeparatorPrivate *private; + GtkStyleContext *context; separator->priv = G_TYPE_INSTANCE_GET_PRIVATE (separator, GTK_TYPE_SEPARATOR, @@ -110,6 +111,9 @@ gtk_separator_init (GtkSeparator *separator) gtk_widget_set_has_window (GTK_WIDGET (separator), FALSE); private->orientation = GTK_ORIENTATION_HORIZONTAL; + + context = gtk_widget_get_style_context (GTK_WIDGET (separator)); + gtk_style_context_add_class (context, GTK_STYLE_CLASS_SEPARATOR); } static void -- cgit v1.2.1