diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2011-03-02 22:55:25 -0500 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2011-03-03 17:48:26 -0500 |
commit | d5c4a0f503e997b10586e74214422fcecb5e38c2 (patch) | |
tree | 717464c66c07973923b5563662792a98efe067dc /gtk/gtkseparator.c | |
parent | fe3f9ca9cd2fd93db3524cda9b8c8a6ef4c5c404 (diff) | |
download | gtk+-d5c4a0f503e997b10586e74214422fcecb5e38c2.tar.gz |
all: add a "separator" style class
Diffstat (limited to 'gtk/gtkseparator.c')
-rw-r--r-- | gtk/gtkseparator.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 |