Gio.Menu.prototype.freeze

function freeze(): void {
    // Gjs wrapper for g_menu_freeze()
}
  

Marks menu as frozen.

After the menu is frozen, it is an error to attempt to make any changes to it. In effect this means that the Gio.Menu API must no longer be used.

This function causes Gio.MenuModel.prototype.is_mutable to begin returning false, which has some positive performance implications.

Since 2.32