Gradual Porting: Amtk 5 Reference Manual

## Gradual Porting Gradual Porting — Gradually porting away from GtkAction and GtkUIManager. |

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

## Moving gradually to GAction

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().