Constructor
GtkMenuBarnew_from_model
since: 3.4
Declaration [src]
GtkWidget*
gtk_menu_bar_new_from_model (
GMenuModel* model
)
Description [src]
Creates a new GtkMenuBar
and populates it with menu items
and submenus according to model
.
The created menu items are connected to actions found in the
GtkApplicationWindow
to which the menu bar belongs - typically
by means of being contained within the GtkApplicationWindows
widget hierarchy.
Available since: 3.4
Parameters
model
-
Type:
GMenuModel
A
GMenuModel
.The data is owned by the caller of the function.
Return value
Type: GtkWidget
A new GtkMenuBar
.
The data is owned by the called function. |