Method

GtkUIManagerget_toplevels

deprecated: 3.10 since: 2.4

Declaration [src]

GSList*
gtk_ui_manager_get_toplevels (
  GtkUIManager* manager,
  GtkUIManagerItemType types
)

Description [src]

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

Available since: 2.4

Deprecated since: 3.10

Please do not use it in newly written code.

Parameters

types

Type: GtkUIManagerItemType

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: A list of GtkWidget*

A newly-allocated GSList of all toplevel widgets of the requested types. Free the returned list with g_slist_free().

The caller of the method takes ownership of the returned data container, but not the data inside it.