Actions, Menus and Toolbars - Gradual Porting: libgedit-amtk 5 Reference Manual

## Actions, Menus and Toolbars - Gradual Porting Actions, Menus and Toolbars - Gradual Porting — Gradually porting away from GtkAction and GtkUIManager |

Even if you don't want to use libgedit-amtk in the end, libgedit-amtk can help to gradually move away from GtkAction and GtkUIManager.

## Moving gradually to GAction

libgedit-amtk provides the following functions that can help:

- amtk_utils_bind_g_action_to_gtk_action()

- amtk_utils_create_gtk_action()

## Moving gradually away from GtkUIManager

For example if you have already ported a submenu, but not the whole menu, you can use the gtk_ui_manager_get_widget() function to get a GtkMenuItem, and then set the submenu with gtk_menu_item_set_submenu().