Method

GtkWidgetget_screen

since: 2.2

Declaration [src]

GdkScreen*
gtk_widget_get_screen (
  GtkWidget* widget
)

Description [src]

Get the GdkScreen from the toplevel window associated with this widget. This function can only be called after the widget has been added to a widget hierarchy with a GtkWindow at the top.

In general, you should only create screen specific resources when a widget has been realized, and you should free those resources when the widget is unrealized.

Available since: 2.2

Return value

Type: GdkScreen

The GdkScreen for the toplevel for this widget.

The returned data is owned by the instance.