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/gtkseparatortoolitem.c | |
parent | fe3f9ca9cd2fd93db3524cda9b8c8a6ef4c5c404 (diff) | |
download | gtk+-d5c4a0f503e997b10586e74214422fcecb5e38c2.tar.gz |
all: add a "separator" style class
Diffstat (limited to 'gtk/gtkseparatortoolitem.c')
-rw-r--r-- | gtk/gtkseparatortoolitem.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkseparatortoolitem.c b/gtk/gtkseparatortoolitem.c index be45120cca..90ecf92b8e 100644 --- a/gtk/gtkseparatortoolitem.c +++ b/gtk/gtkseparatortoolitem.c @@ -152,12 +152,17 @@ gtk_separator_tool_item_class_init (GtkSeparatorToolItemClass *class) static void gtk_separator_tool_item_init (GtkSeparatorToolItem *separator_item) { + GtkStyleContext *context; + separator_item->priv = G_TYPE_INSTANCE_GET_PRIVATE (separator_item, GTK_TYPE_SEPARATOR_TOOL_ITEM, GtkSeparatorToolItemPrivate); separator_item->priv->draw = TRUE; gtk_widget_set_has_window (GTK_WIDGET (separator_item), FALSE); + + context = gtk_widget_get_style_context (GTK_WIDGET (separator_item)); + gtk_style_context_add_class (context, GTK_STYLE_CLASS_SEPARATOR); } static void |