* If supported, the application menu will be rendered by the desktop
* environment.
*
- * It is an error to call this function after the application has been
- * registered.
- *
* Since: 2.32
*/
void
GMenuModel *app_menu)
{
g_return_if_fail (G_IS_APPLICATION (application));
- g_return_if_fail (!application->priv->is_registered);
if (app_menu != application->priv->app_menu)
{
* example, the application menu may be rendered by the desktop shell
* while the menubar (if set) remains in each individual window.
*
- * It is an error to call this function after the application has been
- * registered.
- *
* Since: 2.32
*/
void
GMenuModel *menubar)
{
g_return_if_fail (G_IS_APPLICATION (application));
- g_return_if_fail (!application->priv->is_registered);
if (menubar != application->priv->menubar)
{