get_display


Description:

[ Version ( since = "2.2" ) ]
public unowned Display get_display ()

Get the Display for 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 Window at the top.

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

Parameters:

this

a Widget

Returns:

the Display for the toplevel for this widget.