GtkUIManager::ensure_update

void ensure_update();

This method makes sure that all pending updates to the UI have been completed. This may occasionally be necessary, since GtkUiManager updates the UI in an idle function. A typical example where this method is useful is to enforce that the menubar and toolbar have been added to the main window before showing it.