| Top |
AmtkFactoryMenuAmtkFactoryMenu — A factory that creates GtkMenuItem's |
AmtkFactoryMenu permits to create GtkMenuItem's from AmtkActionInfo's.
If not ignored by an AmtkFactoryFlags, the first accelerator returned by
amtk_action_info_get_accels() is set to the GtkAccelLabel of the
GtkMenuItem.
If not ignored by an AmtkFactoryFlags, the tooltip is set with
amtk_menu_item_set_long_description(), which permits to display it in a
GtkStatusbar with amtk_application_window_connect_menu_to_statusbar().
AmtkFactoryMenu *
amtk_factory_menu_new (GtkApplication *application);
Creates a new AmtkFactoryMenu object. Associating a GtkApplication is optional.
Since: 3.0
AmtkFactoryMenu *
amtk_factory_menu_new_with_default_application
(void);
Calls amtk_factory_menu_new() with g_application_get_default() (it must be a
GtkApplication).
Since: 3.0
GtkWidget * amtk_factory_menu_create_menu_item (AmtkFactoryMenu *factory,const gchar *action_name);
Creates a new GtkMenuItem for action_name
with the
“default-flags”.
Since: 3.0
GtkWidget * amtk_factory_menu_create_menu_item_full (AmtkFactoryMenu *factory,const gchar *action_name,AmtkFactoryFlags flags);
This function ignores the “default-flags” property and takes the
flags
argument instead.
Since: 3.0