Constructor

GtkStyleContextnew

Declaration [src]

GtkStyleContext*
gtk_style_context_new (
  void
)

Description [src]

Creates a standalone GtkStyleContext, this style context won’t be attached to any widget, so you may want to call gtk_style_context_set_path() yourself.

This function is only useful when using the theming layer separated from GTK+, if you are using GtkStyleContext to theme GtkWidgets, use gtk_widget_get_style_context() in order to get a style context ready to theme the widget.

Return value

Type: GtkStyleContext

A newly created GtkStyleContext.

The caller of the function takes ownership of the data, and is responsible for freeing it.