Method

GtkWidgetstyle_attach

Declaration [src]

void
gtk_widget_style_attach (
  GtkWidget* widget
)

Description [src]

This function attaches the widget’s GtkStyle to the widget’s GdkWindow. It is a replacement for

widget->style = gtk_style_attach (widget->style, widget->window);

and should only ever be called in a derived widget’s “realize” implementation which does not chain up to its parent class’ “realize” implementation, because one of the parent classes (finally GtkWidget) would attach the style itself.

Available since:2.20
Deprecated since:3.0

This step is unnecessary with GtkStyleContext.