Package: gtk

Function gtk-widget-screen

Lambda List

gtk-widget-screen (widget)

Arguments

widget -- a gtk-widget object

Return Value

The gdk-screen object for the toplevel for the widget.

Details

Get the screen from the toplevel window associated with the widget. This function can only be called after the widget has been added to a widget hierarchy with a gtk-window widget 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.
 

See also

2021-9-20