Esempio n. 1
0
        private void ClearMenu()
        {
            IntPtr existingMenuList = Gtk.Widget.GetChildren(menuBarHandle);

            for (uint i = 0; i < GLib.GetListLength(existingMenuList); i++)
            {
                var existingMenu = GLib.GetListNthData(existingMenuList, i);
                Gtk.Widget.Destroy(existingMenu);
            }

            GLib.FreeList(existingMenuList);
        }