Package: gtk

Accessor gtk:widget-root

Lambda List

gtk:widget-root (object)

Syntax

(gtk:widget-root object) => root

Arguments

object -- a gtk:widget object
root -- a gtk:root root widget

Details

The gtk:widget-root function returns the gtk:root widget of the widget. This function will return nil if the widget is not contained inside a widget tree with a root widget. The gtk:root widgets will return themselves here. See the gtk:window-destroy function for an example of how this function can be used in a signal handler to get the toplevel window.
 

See also

2023-9-30