UIManager.getToplevels

Obtains a list of all toplevel widgets of the requested types.

Parameters

typesspecifies the types of toplevel widgets to include. Allowed types are #GTK_UI_MANAGER_MENUBAR, #GTK_UI_MANAGER_TOOLBAR and #GTK_UI_MANAGER_POPUP.

Returns

a newly-allocated #GSList of

all toplevel widgets of the requested types. Free the returned list with [glib.slist.SList.free].