GtkUIManager::get_toplevels

get_toplevels(GtkUIManagerItemType types);

Returns a list of all specified the types of toplevel widgets to include. Allowed types are: Gtk::UI_MANAGER_MENUBAR ,Gtk::UI_MANAGER_TOOLBAR and Gtk::UI_MANAGER_POPUP.