UIManager.getToplevels

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

Parameters

types gtk.types.UIManagerItemType

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

Return Value

Type: gtk.widget.Widget[]

a newly-allocated #GSList of all toplevel widgets of the requested types. Free the returned list with glib.slist.SList.free.