mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
GMenuItem: add constructor to copy from model
Add g_menu_item_new_from_model() for constructing a GMenuItem that is a copy of a menu item that's in a GMenuModel.
This commit is contained in:
@@ -96,6 +96,10 @@ GType g_menu_item_get_type (void) G_GNUC_CONST;
|
||||
GMenuItem * g_menu_item_new (const gchar *label,
|
||||
const gchar *detailed_action);
|
||||
|
||||
GLIB_AVAILABLE_IN_2_34
|
||||
GMenuItem * g_menu_item_new_from_model (GMenuModel *model,
|
||||
gint item_index);
|
||||
|
||||
GMenuItem * g_menu_item_new_submenu (const gchar *label,
|
||||
GMenuModel *submenu);
|
||||
|
||||
|
Reference in New Issue
Block a user