Method

GtkWidgetset_app_paintable

Declaration [src]

void
gtk_widget_set_app_paintable (
  GtkWidget* widget,
  gboolean app_paintable
)

Description [src]

Sets whether the application intends to draw on the widget in an GtkWidget::draw handler.

This is a hint to the widget and does not affect the behavior of the GTK+ core; many widgets ignore this flag entirely. For widgets that do pay attention to the flag, such as GtkEventBox and GtkWindow, the effect is to suppress default themed drawing of the widget’s background. (Children of the widget will still be drawn.) The application is then entirely responsible for drawing the widget background.

Note that the background is still drawn when the widget is mapped.

Parameters

app_paintable

Type: gboolean

TRUE if the application will paint on the widget.